aboutsummaryrefslogtreecommitdiff
path: root/log-tree.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-08-08 14:48:42 -0700
committerJunio C Hamano <gitster@pobox.com>2016-08-08 14:48:42 -0700
commit3a3338d373d10fc2699b4ad26a84992d284f3266 (patch)
tree5acac358d96a57ec80cb822d229d19933ccebfb1 /log-tree.c
parent940622bc8b33e085f62c5bcfe6183fe6f57888e2 (diff)
parenta903e233f65a3e93cad74007cc0d5a178f712263 (diff)
downloadgit-3a3338d373d10fc2699b4ad26a84992d284f3266.tar.gz
git-3a3338d373d10fc2699b4ad26a84992d284f3266.tar.xz
Merge branch 'nd/log-decorate-color-head-arrow'
An entry "git log --decorate" for the tip of the current branch is shown as "HEAD -> name" (where "name" is the name of the branch); paint the arrow in the same color as "HEAD", not in the color for commits. * nd/log-decorate-color-head-arrow: log: decorate HEAD -> branch with the same color for arrow and HEAD
Diffstat (limited to 'log-tree.c')
-rw-r--r--log-tree.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/log-tree.c b/log-tree.c
index d0062e678..bfb735c84 100644
--- a/log-tree.c
+++ b/log-tree.c
@@ -263,8 +263,6 @@ void format_decorations_extended(struct strbuf *sb,
if (current_and_HEAD &&
decoration->type == DECORATION_REF_HEAD) {
- strbuf_addstr(sb, color_reset);
- strbuf_addstr(sb, color_commit);
strbuf_addstr(sb, " -> ");
strbuf_addstr(sb, color_reset);
strbuf_addstr(sb, decorate_get_color(use_color, current_and_HEAD->type));