git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [RFC] implement branch.sort config option

From
Jeff King <peff@peff.net>
Date
Aug 13, 2018, 17:46 UTC
Message-ID
<20180813174643.GA8790@sigill.intra.peff.net>
In-Reply-To
<CAFj+z06S1V3Z7Z0zKPSrpZfWuzku9PTYjG+uu6ig-yCnG4FCLw@mail.gmail.com>
On Mon, Aug 13, 2018 at 11:56:58AM +0200, Samuel Maftoul wrote:
Show 17 quoted lines
> Currently, you can:
> 
> git tag --sort=$sorting_key
> 
> You can also do this on branches:
> 
> git branch --sort=$sorting_key
> 
> For tags, you can also configure it with a config key:
> 
> git config tag.sort $sorting_key
> 
> But there is no corresponding config for sorting branches.
> 
> Locally, I have a (pretty simple) patch that implements the
> branch.sort config key.
> Should I contribute that ?

Yes, that seems like a useful feature to me, and as you point out it makes the overall interface more consistent.

-Peff
Previous: Samuel MaftoulNext: Junio C Hamano
Message 2 of 3 in “[RFC] implement branch.sort config option”
  1. Samuel MaftoulAug 13, 2018
  2. Jeff KingAug 13, 2018
  3. Junio C HamanoAug 13, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.