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;