Skip to content

Commit e0e8a2d

Browse files
committed
Merge branch 'rs/doc-ls-tree-hex-literal'
Doc update. * rs/doc-ls-tree-hex-literal: ls-tree: fix documentation of %x format placeholder
2 parents ad6d37e + 3744ffc commit e0e8a2d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Documentation/git-ls-tree.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ OPTIONS
8686
--format=<format>::
8787
A string that interpolates `%(fieldname)` from the result
8888
being shown. It also interpolates `%%` to `%`, and
89-
`%xx` where `xx` are hex digits interpolates to character
90-
with hex code `xx`; for example `%00` interpolates to
91-
`\0` (NUL), `%09` to `\t` (TAB) and `%0a` to `\n` (LF).
89+
`%xNN` where `NN` are hex digits interpolates to character
90+
with hex code `NN`; for example `%x00` interpolates to
91+
`\0` (NUL), `%x09` to `\t` (TAB) and `%x0a` to `\n` (LF).
9292
When specified, `--format` cannot be combined with other
9393
format-altering options, including `--long`, `--name-only`
9494
and `--object-only`.

0 commit comments

Comments
 (0)