List for cgit developers and users
 help / color / mirror / Atom feed
From: Tobias.Bieniek at gmx.de (Tobias Bieniek)
Subject: [PATCH 1/3] Added "sort-sections" flag for the repository listing
Date: Tue, 9 Oct 2012 23:54:29 +0200	[thread overview]
Message-ID: <CABEOeTmVGsB2_pOVg3Rt1qBpUeJsE_a8sVu2H5fyvd27UH93nA@mail.gmail.com> (raw)
In-Reply-To: <CAHmME9rtTYL-9Uct6GcoG2KTVPTmM=ggx-9yc-Eryq6xi81fJQ@mail.gmail.com>

2012/10/9 Jason A. Donenfeld <Jason at zx2c4.com>:
>> Subject: [PATCH] Added "sort-sections" flag for the repository listing
>>
>> Flag which, when set to "1", will sort the sections on the repository
>> listing by name. Set this flag to "0" if the order in the cgitrc file
>> should be preserved. Default value: "1".
>
> This functionality already exists, via the section-sort option, merged
> with master in July:
> http://git.zx2c4.com/cgit/commit/?id=184c5655b2e350dbd0dd8be75d3f370f22aa6dee

Not quite. This patch deals with the sorting of the sections, not the
content of the sections!

Example: http://git.xcsoar.org/

Normally cgit would order the existing sections like this:
Individual developer repositories, Mirrors of related projects,
Official repositories

but we wanted it like this:
Official repositories, Individual developer repositories, Mirrors of
related projects

so the solution is to set sort-sections to 0 and define the order
manually in the cgitrc file.




  reply	other threads:[~2012-10-09 21:54 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-02 15:38 Tobias.Bieniek
2012-07-02 15:38 ` [PATCH 2/3] Added "date-order" and "topo-order" flags Tobias.Bieniek
2012-07-02 15:38 ` [PATCH 3/3] Fixed parameter parsing in repo_config() function Tobias.Bieniek
     [not found] ` <CABEOeT=yfWaqRfanCcgVYLkTa3PD8JtkfvY2NfTGxNOAO2PEFQ@mail.gmail.com>
2012-10-08 21:11   ` [PATCH 1/3] Added "sort-sections" flag for the repository listing Jason
2012-10-09 18:59     ` Tobias.Bieniek
2012-10-09 19:03       ` Jason
2012-10-09 19:10         ` Jason
2012-10-09 19:11           ` Jason
2012-10-09 21:54             ` Tobias.Bieniek [this message]
2012-10-09 22:16               ` Jason
2012-10-09 21:49           ` Tobias.Bieniek
2012-10-09 22:15             ` Jason
2012-10-09 22:26               ` Tobias.Bieniek
2012-10-13 14:24           ` Tobias.Bieniek
2012-10-09 21:47         ` Tobias.Bieniek
2012-10-09 19:12       ` Jason

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CABEOeTmVGsB2_pOVg3Rt1qBpUeJsE_a8sVu2H5fyvd27UH93nA@mail.gmail.com \
    --to=cgit@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).