config: restructure color.decorate documentation

List color.decorate slots in git-config documentation one-by-one in the
same way as color.grep slots, to aid readability and make it easier to
add slots.

Signed-off-by: Andy Koppe <andy.koppe@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Andy Koppe
2023-10-23 23:11:37 +01:00
committed by Junio C Hamano
parent d0e8084c65
commit 3f5b7ec4a5

View File

@ -74,10 +74,25 @@ color.diff.<slot>::
`oldBold`, and `newBold` (see linkgit:git-range-diff[1] for details).
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
and `grafted` for grafted commits.
Use customized color for the output of 'git log --decorate' as well as
the `%d`, `%D` and `%(decorate)` placeholders in custom log formats,
whereby `<slot>` specifies which decoration elements the color applies
to:
+
--
`HEAD`;;
the current HEAD
`branch`;;
local branches
`remoteBranch`;;
remote-tracking branches
`tag`;;
lightweight and annotated tags
`stash`;;
the stash ref
`grafted`;;
grafted and replaced commits
--
color.grep::
When set to `always`, always highlight matches. When `false` (or