summaryrefslogtreecommitdiff
path: root/log-tree.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-03-20 13:50:51 -0700
committerJunio C Hamano <gitster@pobox.com>2015-03-20 13:50:51 -0700
commit5f456b3c2612dce9cbc3ba4864dd0e5fdf429cac (patch)
treed4d7fd402a8490ab4c61a4eff9ba8f054395f0cb /log-tree.c
parentcfe96b38fddc114c0bc98bbeab51b0f18fd102c3 (diff)
parent5ee875852e3cb41c21c2e89a636fc1e40c4012b1 (diff)
downloadgit-5f456b3c2612dce9cbc3ba4864dd0e5fdf429cac.tar.gz
Merge branch 'jc/decorate-leaky-separator-color'
"git log --decorate" did not reset colors correctly around the branch names. * jc/decorate-leaky-separator-color: log --decorate: do not leak "commit" color into the next item Documentation/config.txt: simplify boolean description in the syntax section Documentation/config.txt: describe 'color' value type in the "Values" section Documentation/config.txt: have a separate "Values" section Documentation/config.txt: describe the structure first and then meaning Documentation/config.txt: explain multi-valued variables once Documentation/config.txt: avoid unnecessary negation
Diffstat (limited to 'log-tree.c')
-rw-r--r--log-tree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/log-tree.c b/log-tree.c
index 7f0890e4ac..53bb52659b 100644
--- a/log-tree.c
+++ b/log-tree.c
@@ -195,6 +195,7 @@ void format_decorations_extended(struct strbuf *sb,
while (decoration) {
strbuf_addstr(sb, color_commit);
strbuf_addstr(sb, prefix);
+ strbuf_addstr(sb, color_reset);
strbuf_addstr(sb, decorate_get_color(use_color, decoration->type));
if (decoration->type == DECORATION_REF_TAG)
strbuf_addstr(sb, "tag: ");