Re: [PATCH] branch: colorize branches checked out in a linked working tree the same way as the current branch is colorized
- From
Rafael Ascensão <rafa.almas@gmail.com>
- Date
- Sep 27, 2018, 21:35 UTC
- Message-ID
- <20180927213511.GB2628@rigel>
- In-Reply-To
- <20180927193559.GB6950@sigill.intra.peff.net>
On Thu, Sep 27, 2018 at 03:35:59PM -0400, Jeff King wrote:
Show 7 quoted lines
> On Thu, Sep 27, 2018 at 08:28:04PM +0100, Rafael Ascensão wrote: > > But if we're open to change how branches are displayed maybe a config > > option like branch.format (probably not the best name choice) that can > > be set to the 'for-each-ref --format' syntax would be way more flexible. > > We have that already, don't we? >
git branch has --format, but there's no way (at least to my knowledge) to define a value in gitconfig to be used by $git branch.
Having branch --format available, making an alias is a possible route. (Either by wrapping branch --format or for-each-ref itself). But I was referring to changing the output of the default $git branch;