mirror of
https://github.com/git/git.git
synced 2024-11-23 18:05:29 +08:00
doc: fix hex code escapes in git-ls-files
The --format option on the git-ls-files man page states that `%xx` interpolates to the character with hex code `xx`. This mirrors the documentation and behavior of `git for-each-ref --format=...`. However, in reality it requires the character with code `XX` to be specified as `%xXX`, mirroring the behaviour of `git log --format`. Signed-off-by: Jayson Rhynas <jayrhynas@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
ad57f148c6
commit
c199707496
@ -219,9 +219,9 @@ followed by the ("attr/<eolattr>").
|
||||
|
||||
--format=<format>::
|
||||
A string that interpolates `%(fieldname)` from the result being shown.
|
||||
It also interpolates `%%` to `%`, and `%xx` where `xx` are hex digits
|
||||
interpolates to character with hex code `xx`; for example `%00`
|
||||
interpolates to `\0` (NUL), `%09` to `\t` (TAB) and %0a to `\n` (LF).
|
||||
It also interpolates `%%` to `%`, and `%xXX` where `XX` are hex digits
|
||||
interpolates to character with hex code `XX`; for example `%x00`
|
||||
interpolates to `\0` (NUL), `%x09` to `\t` (TAB) and %x0a to `\n` (LF).
|
||||
--format cannot be combined with `-s`, `-o`, `-k`, `-t`, `--resolve-undo`
|
||||
and `--eol`.
|
||||
\--::
|
||||
|
Loading…
Reference in New Issue
Block a user