]> git.ipfire.org Git - thirdparty/git.git/commit
cat-file: use strbuf_expand_bad_format()
authorRené Scharfe <l.s.r@web.de>
Sun, 24 Mar 2024 11:21:15 +0000 (12:21 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 25 Mar 2024 18:59:26 +0000 (11:59 -0700)
commit7c43bdf07b63ce86572bec1db9d19a160c8de8cd
tree4b415eb640e1be9fe8a5cdcc2c0e1b2a97ecef05
parente36091aa1d67cedba02ea9de9245f0ff14a52f15
cat-file: use strbuf_expand_bad_format()

Report unknown format elements and missing closing parentheses with
consistent and translated messages by calling strbuf_expand_bad_format()
at the very end of the combined if/else chain of expand_format() and
expand_atom().

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/cat-file.c