Skip to content

Commit 5d3d068

Browse files
peffgitster
authored andcommitted
docs/for-each-ref: update pointer to color syntax
The documentation for the %(color) placeholder refers to the color.branch.* config for more details. But those details moved to their own section in b92c1a2 (Documentation/config.txt: describe 'color' value type in the "Values" section, 2015-03-03). Let's update our pointer. We can steal the text from 30cfe72 (pretty: fix document link for color specification, 2016-10-11), which fixed the same problem in a different place. While we're at it, let's give an example, which makes the syntax much more clear than just the text. Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 2eda010 commit 5d3d068

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Documentation/git-for-each-ref.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,10 @@ HEAD::
156156
otherwise.
157157

158158
color::
159-
Change output color. Followed by `:<colorname>`, where names
160-
are described in `color.branch.*`.
159+
Change output color. Followed by `:<colorname>`, where color
160+
names are described under Values in the "CONFIGURATION FILE"
161+
section of linkgit:git-config[1]. For example,
162+
`%(color:bold red)`.
161163

162164
align::
163165
Left-, middle-, or right-align the content between

0 commit comments

Comments
 (0)