Discussion:
[savannah-help-public] [sr #109305] for nano, please order branches in cgit by age
Benno Schulenberg
2017-05-01 11:56:11 UTC
Permalink
URL:
<http://savannah.gnu.org/support/?109305>

Summary: for nano, please order branches in cgit by age
Project: Savannah Administration
Submitted by: bens
Submitted on: Mon 01 May 2017 11:56:10 AM UTC
Category: Source code repositories - web browsing
Priority: 5 - Normal
Severity: 2 - Minor
Status: None
Assigned to: None
Originator Email:
Operating System: None
Open/Closed: Open
Discussion Lock: Any

_______________________________________________________

Details:

Hi,

Just about everything in cgit is ordered by age: most recent first. But on
the main page the branches are ordered by name. I think it makes more sense
to order also the branches by age, most recent first.

If this cannot be set per repo but has to be done cgit-wide... I still would
like to request it, as I really think it makes the most sense.

Benno




_______________________________________________________

Reply to this item at:

<http://savannah.gnu.org/support/?109305>

_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
Benno Schulenberg
2017-05-01 12:05:42 UTC
Permalink
Follow-up Comment #1, sr #109305 (project administration):

Should have included a link to the page I'm referring to:

http://git.savannah.gnu.org/cgit/nano.git/

_______________________________________________________

Reply to this item at:

<http://savannah.gnu.org/support/?109305>

_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
Bob Proulx
2017-08-25 23:58:38 UTC
Permalink
Follow-up Comment #2, sr #109305 (project administration):

Hello Benno. Savannah is using a standard cgit installation.

http://git.zx2c4.com/cgit/

The configuration doc is here.

https://git.zx2c4.com/cgit/tree/cgitrc.5.txt

The upstream cgit seems to be using the sorting you desire. I look and find
this setting in the manual.

branch-sort::
Flag which, when set to "age", enables date ordering in the branch ref list,
and when set to "name" enables ordering by branch name. Default value:
"name".

That seems perfect. I have set it in the cgitrc file. However it seems to
have no effect. There may be some caching involved. I am going to let things
site like this for a bit and see if after a cache invalidation the ordering
changes.

If you have other suggestions that would be great.


_______________________________________________________

Reply to this item at:

<http://savannah.gnu.org/support/?109305>

_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
Benno Schulenberg
2017-08-26 09:37:39 UTC
Permalink
Follow-up Comment #3, sr #109305 (project administration):

Hi Bob. Maybe cgit needs to be prodded or restarted for it to reread the
cgitrc file? Or maybe the version on Savannah is too old? (Because upstream
seems to be at 1.1 plus nine months, not at 1.0 plus something.)

I've tried sorting the branches by age with a repository-specific cgitrc file,
but that has no effect either. (It requires a scan-path variable to be set,
but I think that most likely it is set on Savannah.)

_______________________________________________________

Reply to this item at:

<http://savannah.gnu.org/support/?109305>

_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/

Loading...