]> git.ipfire.org Git - thirdparty/git.git/commitdiff
log-tree: allow to customize 'grafted' color
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Sat, 26 May 2018 13:55:31 +0000 (15:55 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 29 May 2018 05:51:29 +0000 (14:51 +0900)
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>
Documentation/config.txt
log-tree.c

index a6cd53b59c2818b7a75eb8ab92e8a73b5ddf6df5..4bb1b6f9af70dcc7403db6d84b183dcbe6808902 100644 (file)
@@ -1162,7 +1162,8 @@ color.diff.<slot>::
 color.decorate.<slot>::
        Use customized color for 'git log --decorate' output.  `<slot>` is one
        of `branch`, `remoteBranch`, `tag`, `stash` or `HEAD` for local
-       branches, remote-tracking branches, tags, stash and HEAD, respectively.
+       branches, remote-tracking branches, tags, stash and HEAD, respectively
+       and `grafted` for grafted commits.
 
 color.grep::
        When set to `always`, always highlight matches.  When `false` (or
index 30706fe9266b2082494170e4362b03c820a0bee5..888c236aa30c03f6ada90e063cbf11b93f4b9c68 100644 (file)
@@ -34,6 +34,7 @@ static const char *color_decorate_slots[] = {
        [DECORATION_REF_TAG]    = "tag",
        [DECORATION_REF_STASH]  = "stash",
        [DECORATION_REF_HEAD]   = "HEAD",
+       [DECORATION_GRAFTED]    = "grafted",
 };
 
 static const char *decorate_get_color(int decorate_use_color, enum decoration_type ix)