Re: [RFC] implement branch.sort config option

2018-08-13 Thread Junio C Hamano
Samuel Maftoul writes: > I'm still missing tests and docs, but if agreed the feature is useful, > I will write them. I personally think branch.sort would have about the same value as the existing tag.sort, so if a patch is done well, it is likely that users would find it valuable, but let's leav

Re: [RFC] implement branch.sort config option

2018-08-13 Thread Jeff King
On Mon, Aug 13, 2018 at 11:56:58AM +0200, Samuel Maftoul wrote: > 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 > > B

[RFC] implement branch.sort config option

2018-08-13 Thread Samuel Maftoul
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