Re: [PATCH] branch: colorize branches checked out in a linked working tree the same way as the current branch is colorized
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Sep 27, 2018, 17:58 UTC
- Message-ID
- <CACsJy8AQ9uGoJUvDo8+9n7HbvsHsNRSyntxRZ5tUFRVxFGAS0w@mail.gmail.com>
- In-Reply-To
- <CAC05386q2iGoiJ_fRgwoOTF23exEN2D1+oh4VjajEvYQ58O1TQ@mail.gmail.com>
On Thu, Sep 27, 2018 at 5:15 PM Nickolai Belakovski <nbelakovski@gmail.com> wrote:
> > In order to more clearly display which branches are active, the output > of git branch is modified to colorize branches checked out in any linked > worktrees with the same color as the current branch.
My first thought was "how do I know which branch I'm on then if they are all green?" but then the current worktree's branch would have a "*" in front while other worktree's do not. Perhaps worth mentioning in the commit message.
It may be better though to have a different color code for other worktree's branch, we can still default the color to green, but people who rely on colors rather than "*" can choose a different color.
-- Duy