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 /diff.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 'diff.c')
-rw-r--r-- | diff.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -30,14 +30,14 @@ int diff_auto_refresh_index = 1; static int diff_mnemonic_prefix; static char diff_colors[][COLOR_MAXLEN] = { - "\033[m", /* reset */ - "", /* PLAIN (normal) */ - "\033[1m", /* METAINFO (bold) */ - "\033[36m", /* FRAGINFO (cyan) */ - "\033[31m", /* OLD (red) */ - "\033[32m", /* NEW (green) */ - "\033[33m", /* COMMIT (yellow) */ - "\033[41m", /* WHITESPACE (red background) */ + GIT_COLOR_RESET, + GIT_COLOR_NORMAL, /* PLAIN */ + GIT_COLOR_BOLD, /* METAINFO */ + GIT_COLOR_CYAN, /* FRAGINFO */ + GIT_COLOR_RED, /* OLD */ + GIT_COLOR_GREEN, /* NEW */ + GIT_COLOR_YELLOW, /* COMMIT */ + GIT_COLOR_BG_RED, /* WHITESPACE */ }; static void diff_filespec_load_driver(struct diff_filespec *one); |