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>

Jayson Rhynas committed Jul 26, 2024 at 11:41 UTC c1997074966a9eee7354bd3310048660a6287570
1 file changed +3 -3
Documentation/git-ls-files.txt
+3 -3
@@ -219,9 +219,9 @@ followed by the ("attr/<eolattr>").
219
220 --format=<format>::
221 A string that interpolates `%(fieldname)` from the result being shown.
222 - It also interpolates `%%` to `%`, and `%xx` where `xx` are hex digits
223 - interpolates to character with hex code `xx`; for example `%00`
224 - interpolates to `\0` (NUL), `%09` to `\t` (TAB) and %0a to `\n` (LF).
222 + It also interpolates `%%` to `%`, and `%xXX` where `XX` are hex digits
223 + interpolates to character with hex code `XX`; for example `%x00`
224 + interpolates to `\0` (NUL), `%x09` to `\t` (TAB) and %x0a to `\n` (LF).
225 --format cannot be combined with `-s`, `-o`, `-k`, `-t`, `--resolve-undo`
226 and `--eol`.
227 \--::