Skip to content

Commit 09c4ba4

Browse files
pcloudsgitster
authored andcommitted
log-tree: allow to customize 'grafted' color
Commit 76f5df3 (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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent bea2125 commit 09c4ba4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Documentation/config.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1162,7 +1162,8 @@ color.diff.<slot>::
11621162
color.decorate.<slot>::
11631163
Use customized color for 'git log --decorate' output. `<slot>` is one
11641164
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.
11661167

11671168
color.grep::
11681169
When set to `always`, always highlight matches. When `false` (or

log-tree.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ static const char *color_decorate_slots[] = {
3434
[DECORATION_REF_TAG] = "tag",
3535
[DECORATION_REF_STASH] = "stash",
3636
[DECORATION_REF_HEAD] = "HEAD",
37+
[DECORATION_GRAFTED] = "grafted",
3738
};
3839

3940
static const char *decorate_get_color(int decorate_use_color, enum decoration_type ix)

0 commit comments

Comments
 (0)