diff options
| author | René Scharfe <l.s.r@web.de> | 2023-06-15 19:33:39 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-06-15 11:19:02 -0700 |
| commit | 3744ffcbcdcd5a619b7522671e6137b33d84626b (patch) | |
| tree | 465e83c330f35c4aeea89761c728defaef12a4a5 /builtin/commit.c | |
| parent | Git 2.41 (diff) | |
| download | git-3744ffcbcdcd5a619b7522671e6137b33d84626b.tar.gz git-3744ffcbcdcd5a619b7522671e6137b33d84626b.zip | |
ls-tree: fix documentation of %x format placeholder
ls-tree --format expands %x followed by two hexadecimal digits to the
character indicated by that hexadecimal number, e.g.:
$ git ls-tree --format=%x41 HEAD | head -1
A
It rejects % followed by a hexadecimal digit, e.g.:
$ git ls-tree --format=%41 HEAD | head -1
fatal: bad ls-tree format: element '41' does not start with '('
This functionality is provided by strbuf_expand_literal_cb(), which has
not been changed since it was factored out by fd2015b323 (strbuf:
separate callback for strbuf_expand:ing literals, 2019-01-28).
Adjust the documentation accordingly.
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions
