List for cgit developers and users
 help / color / mirror / Atom feed
From: john at keeping.me.uk (John Keeping)
Subject: cgit sort branches
Date: Sun, 17 Jan 2016 10:36:55 +0000	[thread overview]
Message-ID: <20160117103655.GQ14056@serenity.lan> (raw)
In-Reply-To: <CAC8NTUVvA2SjZPPHvB0Ds0+8J_YjSJdO+9zpjFP5skDfgY1H1A@mail.gmail.com>

On Sat, Jan 16, 2016 at 07:56:25PM -0800, Radha Mohan wrote:
> I set up cgit for my git server and am looking for a way to sort the
> branches in each repo summary page according to its age (newest
> first).
> I used "branch-sort=age" but it doesn't seem to work.
> Here is my cgitrc file contents.
> 
> logo=/cgit/cgit.png
> css=/cgit/cgit.css
> robots=index, nofollow
> scan-path=/repo/git
> case-sensitive-sort=0
> enable-git-config=1
> root-title=Git repository
> branch-sort=age
> 
> 
> Any pointers on how to achieve sort?

"branch-sort=age" should do it.  I notice you have "enable-git-config=1"
is there any chance you have some repo-specific configuration that is
overriding branch-sort?


  reply	other threads:[~2016-01-17 10:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-17  3:56 mohun106
2016-01-17 10:36 ` john [this message]
2016-01-17 14:43 ` jason.donenfeld
2016-01-17 20:07   ` mohun106

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=20160117103655.GQ14056@serenity.lan \
    --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).