summaryrefslogtreecommitdiff
path: root/log-tree.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-03-23 18:23:28 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-03-23 18:23:28 (GMT)
commit3f6f5c9dbe764c5100e6b48a0081b022983f49e8 (patch)
tree967471d7c744c3f58b7f77aef587ac5da8512b61 /log-tree.c
parentc97418466a06c31edca53995cf82f644851640b1 (diff)
parent5ee875852e3cb41c21c2e89a636fc1e40c4012b1 (diff)
downloadgit-3f6f5c9dbe764c5100e6b48a0081b022983f49e8.zip
git-3f6f5c9dbe764c5100e6b48a0081b022983f49e8.tar.gz
git-3f6f5c9dbe764c5100e6b48a0081b022983f49e8.tar.bz2
Merge branch 'jc/decorate-leaky-separator-color' into maint
"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 7f0890e..53bb526 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: ");