diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-03-05 15:41:19 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-03-05 15:41:19 -0800 |
commit | 4a2caf691232ef9599ee3f1a1a04a47f309e65c1 (patch) | |
tree | 91d75bb9b5fa1147a170215badbff9a5da439382 /pretty.c | |
parent | 8a61097cde387870921e822bdf90b4ffd3792845 (diff) | |
parent | 74bb2dfbec15ad47242b9a879b5547b6f4a28318 (diff) | |
download | git-4a2caf691232ef9599ee3f1a1a04a47f309e65c1.tar.gz |
Merge branch 'al/ansi-color'
* al/ansi-color:
builtin-branch.c: Rename branch category color names
Clean up use of ANSI color sequences
Diffstat (limited to 'pretty.c')
-rw-r--r-- | pretty.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -568,16 +568,16 @@ static size_t format_commit_item(struct strbuf *sb, const char *placeholder, return end - placeholder + 1; } if (!prefixcmp(placeholder + 1, "red")) { - strbuf_addstr(sb, "\033[31m"); + strbuf_addstr(sb, GIT_COLOR_RED); return 4; } else if (!prefixcmp(placeholder + 1, "green")) { - strbuf_addstr(sb, "\033[32m"); + strbuf_addstr(sb, GIT_COLOR_GREEN); return 6; } else if (!prefixcmp(placeholder + 1, "blue")) { - strbuf_addstr(sb, "\033[34m"); + strbuf_addstr(sb, GIT_COLOR_BLUE); return 5; } else if (!prefixcmp(placeholder + 1, "reset")) { - strbuf_addstr(sb, "\033[m"); + strbuf_addstr(sb, GIT_COLOR_RESET); return 6; } else return 0; |