summaryrefslogtreecommitdiff
path: root/pretty.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-03-05 15:41:19 -0800
committerJunio C Hamano <gitster@pobox.com>2009-03-05 15:41:19 -0800
commit4a2caf691232ef9599ee3f1a1a04a47f309e65c1 (patch)
tree91d75bb9b5fa1147a170215badbff9a5da439382 /pretty.c
parent8a61097cde387870921e822bdf90b4ffd3792845 (diff)
parent74bb2dfbec15ad47242b9a879b5547b6f4a28318 (diff)
downloadgit-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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pretty.c b/pretty.c
index 6cd91491d3..d64212d4cc 100644
--- a/pretty.c
+++ b/pretty.c
@@ -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;