log-tree: allow to customize 'grafted' color
Commit 76f5df305b (log: decorate grafted commits with "grafted" - 2011-08-18) lets us decorate grafted commits but I forgot about the color.decorate.* config. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Nguyễn Thái Ngọc Duy committed
May 26, 2018 at 15:55 UTC
09c4ba410b0fda5a82dc5a9b71bfd4967927e6ca
2 files changed
+3
-1
Documentation/config.txt
+2
-1
@@ -1162,7 +1162,8 @@ color.diff.<slot>::
1162
color.decorate.<slot>::
1163
Use customized color for 'git log --decorate' output. `<slot>` is one
1164
of `branch`, `remoteBranch`, `tag`, `stash` or `HEAD` for local
1165
- branches, remote-tracking branches, tags, stash and HEAD, respectively.
1165
+ branches, remote-tracking branches, tags, stash and HEAD, respectively
1166
+ and `grafted` for grafted commits.
1167
1168
color.grep::
1169
When set to `always`, always highlight matches. When `false` (or
log-tree.c
+1
@@ -34,6 +34,7 @@ static const char *color_decorate_slots[] = {
34
[DECORATION_REF_TAG] = "tag",
35
[DECORATION_REF_STASH] = "stash",
36
[DECORATION_REF_HEAD] = "HEAD",
37
+ [DECORATION_GRAFTED] = "grafted",
38
};
39
40
static const char *decorate_get_color(int decorate_use_color, enum decoration_type ix)