diff options
author | Arjen Laarhoven <arjen@yaph.org> | 2009-02-13 22:53:40 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-02-13 17:27:58 -0800 |
commit | dc6ebd4cc5028d59146e02e30f7945ee91974e6e (patch) | |
tree | 6028f6a7a3e2baf7b24bde5cd2819c148f0a3c68 /builtin-branch.c | |
parent | 5cd12b85fe8ff74f202a158511ead34e8aba584c (diff) | |
download | git-dc6ebd4cc5028d59146e02e30f7945ee91974e6e.tar.gz git-dc6ebd4cc5028d59146e02e30f7945ee91974e6e.tar.xz |
Clean up use of ANSI color sequences
Remove the literal ANSI escape sequences and replace them by readable
constants.
Signed-off-by: Arjen Laarhoven <arjen@yaph.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-branch.c')
-rw-r--r-- | builtin-branch.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/builtin-branch.c b/builtin-branch.c index 56a1971d6..fe139e1f0 100644 --- a/builtin-branch.c +++ b/builtin-branch.c @@ -32,11 +32,11 @@ static unsigned char head_sha1[20]; static int branch_use_color = -1; static char branch_colors[][COLOR_MAXLEN] = { - "\033[m", /* reset */ - "", /* PLAIN (normal) */ - "\033[31m", /* REMOTE (red) */ - "", /* LOCAL (normal) */ - "\033[32m", /* CURRENT (green) */ + GIT_COLOR_RESET, + GIT_COLOR_NORMAL, /* PLAIN */ + GIT_COLOR_RED, /* REMOTE */ + GIT_COLOR_NORMAL, /* LOCAL */ + GIT_COLOR_GREEN, /* CURRENT */ }; enum color_branch { COLOR_BRANCH_RESET = 0, |