Johannes Sixt <J.Sixt@xxxxxxxxxxxxx> writes: > Andy Parkins wrote: >> This patch chooses green for local, red for remote and bold green for >> current. > > Sorry for chiming in so late, but red and green are usually poor choices > since red-green color-blindness is surprisingly frequent... > > Maybe its sufficient to have just the remote branches (dark-)red, and > the rest in the default color, with the current branch bold? Even without red-green blindness issue, I think that makes sense. colored-diff uses green/red for added/deleted but that is shown against the context in plain. A sane thing to do for branch listing would be to show the usual case (i.e. local) in plain and show the remote ones differently. Something like this on top of Andy's? If we keep '*' prefix for the current one, I do not see a reason to show it in a different color from other local branches, by the way, but I did not go that far in this patch. --- diff --git a/builtin-branch.c b/builtin-branch.c index 7c87b8d..d1c243d 100644 --- a/builtin-branch.c +++ b/builtin-branch.c @@ -23,8 +23,8 @@ static char branch_colors[][COLOR_MAXLEN] = { "\033[m", /* reset */ "", /* PLAIN (normal) */ "\033[31m", /* REMOTE (red) */ - "\033[32m", /* LOCAL (green) */ - "\033[1;32m", /* CURRENT (boldgreen) */ + "", /* LOCAL (normal) */ + "\033[32m", /* CURRENT (green) */ }; enum color_branch { COLOR_BRANCH_RESET = 0, - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html