Skip to content

Commit

Permalink
branch --color: change default color selection.
Browse files Browse the repository at this point in the history
Showing local and remote branches in green and red was simply
overkill, as all we wanted was to make it easy to tell them
apart (local ones can be built on top by committing, but the
remote tracking ones can't).

Use plain coloring for local branches and paint remotes in red.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Dec 13, 2006
1 parent a1158ca commit 753f96a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builtin-branch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 753f96a

Please sign in to comment.