Re: [PATCH] log: decorate HEAD -> branch with the same color for branch and HEAD
- From
Jeff King <peff@peff.net>
- Date
- Jul 1, 2016, 06:31 UTC
- Message-ID
- <20160701063129.GC5358@sigill.intra.peff.net>
- In-Reply-To
- <20160630163942.8353-1-pclouds@gmail.com>
On Thu, Jun 30, 2016 at 06:39:42PM +0200, Nguyễn Thái Ngọc Duy wrote:
Show 6 quoted lines
> Commit 76c61fb (log: decorate HEAD with branch name under > --decorate=full, too - 2015-05-13) adds "HEAD -> branch" decoration to > show current branch vs detached HEAD. The sign of whether HEAD is > detached or not is "->" (vs ", "). It's too subtle for my poor > eyes. If color is used, we can make the branch name's color the same > as HEAD to visually emphasize that it's the current branch.
Hmm. I think I like this, as it uses color to make the grouping between HEAD and its referent more clear.
We do already use colors to indicate "type", though. Which means:
1. The branch now uses the "symref" color. Probably OK, as that is the
point of the grouping (I wonder if the "->" in the middle should
match in color, too). 2. We used to color based on current_and_HEAD->type, but now that
information isn't conveyed. However, can this really ever have been
anything _except_ a branch?-Peff