Skip to content

Commit 014aa1d

Browse files
committed
pretty-formats: define "literal formatting code"
The description for a %(trailer) option already uses this term without having a definition anywhere in the document, and we are about to add another one in %(decorate) that uses it. Signed-off-by: Junio C Hamano <[email protected]> Signed-off-by: Andy Koppe <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent fac96df commit 014aa1d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Documentation/pretty-formats.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ The placeholders are:
122122
- Placeholders that expand to a single literal character:
123123
'%n':: newline
124124
'%%':: a raw '%'
125-
'%x00':: print a byte from a hex code
125+
'%x00':: '%x' followed by two hexadecimal digits is replaced with a
126+
byte with the hexadecimal digits' value (we will call this
127+
"literal formatting code" in the rest of this document).
126128

127129
- Placeholders that affect formatting of later placeholders:
128130
'%Cred':: switch color to red

0 commit comments

Comments
 (0)