summaryrefslogtreecommitdiffstats
path: root/pretty-formats.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-08-22 11:32:37 -0700
committerJunio C Hamano <gitster@pobox.com>2017-08-22 11:32:37 -0700
commit4b2a6c149b267a1120f1444a0951af13d7b36d69 (patch)
tree5c68e72eebbfb448458790b8350ba417b3d93654 /pretty-formats.txt
parent65314ca2cdc18a564335d61f615f5f6da04c0f97 (diff)
downloadgit-htmldocs-4b2a6c149b267a1120f1444a0951af13d7b36d69.tar.gz
Autogenerated HTML docs for v2.14.1-248-gf0294f
Diffstat (limited to 'pretty-formats.txt')
-rw-r--r--pretty-formats.txt18
1 files changed, 11 insertions, 7 deletions
diff --git a/pretty-formats.txt b/pretty-formats.txt
index 4d6dac577..973d19606 100644
--- a/pretty-formats.txt
+++ b/pretty-formats.txt
@@ -173,13 +173,17 @@ endif::git-rev-list[]
- '%Cblue': switch color to blue
- '%Creset': reset color
- '%C(...)': color specification, as described under Values in the
- "CONFIGURATION FILE" section of linkgit:git-config[1];
- adding `auto,` at the beginning (e.g. `%C(auto,red)`) will emit
- color only when colors are enabled for log output (by `color.diff`,
- `color.ui`, or `--color`, and respecting the `auto` settings of the
- former if we are going to a terminal). `auto` alone (i.e.
- `%C(auto)`) will turn on auto coloring on the next placeholders
- until the color is switched again.
+ "CONFIGURATION FILE" section of linkgit:git-config[1].
+ By default, colors are shown only when enabled for log output (by
+ `color.diff`, `color.ui`, or `--color`, and respecting the `auto`
+ settings of the former if we are going to a terminal). `%C(auto,...)`
+ is accepted as a historical synonym for the default (e.g.,
+ `%C(auto,red)`). Specifying `%C(always,...) will show the colors
+ even when color is not otherwise enabled (though consider
+ just using `--color=always` to enable color for the whole output,
+ including this format and anything else git might color). `auto`
+ alone (i.e. `%C(auto)`) will turn on auto coloring on the next
+ placeholders until the color is switched again.
- '%m': left (`<`), right (`>`) or boundary (`-`) mark
- '%n': newline
- '%%': a raw '%'