Thread (66 messages) 66 messages, 8 authors, 2019-04-29

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 <hidden>
Date: 2018-09-27 21:35:18

On Thu, Sep 27, 2018 at 03:35:59PM -0400, Jeff King wrote:
On Thu, Sep 27, 2018 at 08:28:04PM +0100, Rafael Ascensão wrote:
quoted
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;
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help