diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-02-02 13:36:58 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-02-02 13:36:58 -0800 |
commit | 85279e86499501be0f046cb9885ad24fbf9d0b8d (patch) | |
tree | d272cb15ce42c4b57ad685c133a8d1f36e836995 /Documentation/config.txt | |
parent | cc8364c28be5d15787ad4791afa0da49af78d007 (diff) | |
parent | 512aba261a8951a470147b493c720f205638ba14 (diff) | |
download | git-85279e86499501be0f046cb9885ad24fbf9d0b8d.tar.gz git-85279e86499501be0f046cb9885ad24fbf9d0b8d.tar.xz |
Merge branch 'nd/log-graph-configurable-colors'
Some people feel the default set of colors used by "git log --graph"
rather limiting. A mechanism to customize the set of colors has
been introduced.
* nd/log-graph-configurable-colors:
document behavior of empty color name
color_parse_mem: allow empty color spec
log --graph: customize the graph lines with config log.graphColors
color.c: trim leading spaces in color_parse_mem()
color.c: fix color_parse_mem() with value_len == 0
Diffstat (limited to 'Documentation/config.txt')
-rw-r--r-- | Documentation/config.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/config.txt b/Documentation/config.txt index af2ae4cc0..fc78139c2 100644 --- a/Documentation/config.txt +++ b/Documentation/config.txt @@ -170,6 +170,9 @@ The position of any attributes with respect to the colors be turned off by prefixing them with `no` or `no-` (e.g., `noreverse`, `no-ul`, etc). + +An empty color string produces no color effect at all. This can be used +to avoid coloring specific elements without disabling color entirely. ++ For git's pre-defined color slots, the attributes are meant to be reset at the beginning of each item in the colored output. So setting `color.decorate.branch` to `black` will paint that branch name in a @@ -2036,6 +2039,10 @@ log.follow:: i.e. it cannot be used to follow multiple files and does not work well on non-linear history. +log.graphColors:: + A list of colors, separated by commas, that can be used to draw + history lines in `git log --graph`. + log.showRoot:: If true, the initial commit will be shown as a big creation event. This is equivalent to a diff against an empty tree. |