mainSavannah Administration - Support: sr #109305, for nano, please order branches in...

 
 

sr #109305: for nano, please order branches in cgit by age

Submitter:  Benno Schulenberg <bens>
Submitted:  Mon 01 May 2017 11:56:10 AM UTC
   
 
Category:  Source code repositories - web browsing Priority:  5 - Normal
Severity:  2 - Minor Status:  Done
Privacy:  Public Assigned to:  None
Operating System:  None Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 21 Jun 2023 05:36:55 AM UTC, comment #5: 

Thanks!  Looks much better now.

Benno Schulenberg <bens>
Tue 20 Jun 2023 06:12:10 PM UTC, comment #4: 

It turned out that the line was added in a wrong place, after including cgitrepos; moving it up made it work.

P.S. probably we could do that per-repository; for now, the setting is global.

Ineiev <ineiev>
Site Administrator
Sat 26 Aug 2017 09:37:39 AM UTC, comment #3: 

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.)

Benno Schulenberg <bens>
Fri 25 Aug 2017 11:58:38 PM UTC, comment #2: 

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.

Bob Proulx <rwp>
Site Administrator
Mon 01 May 2017 12:05:41 PM UTC, comment #1: 

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

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

Benno Schulenberg <bens>
Mon 01 May 2017 11:56:10 AM UTC, original submission:  

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

Benno Schulenberg <bens>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by ineiev (Posted a comment)
  • -email is unavailable- added by rwp (Posted a comment)
  • -email is unavailable- added by bens (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-06-20 ineiev StatusNone Done
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code