]> git.ipfire.org Git - thirdparty/git.git/commit - strbuf.h
factor out strbuf_expand_bad_format()
authorRené Scharfe <l.s.r@web.de>
Sun, 24 Mar 2024 11:19:40 +0000 (12:19 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 25 Mar 2024 18:59:24 +0000 (11:59 -0700)
commite36091aa1d67cedba02ea9de9245f0ff14a52f15
treef3bca1f45a8d8f54955acda7ff517f6432dc30e3
parent3c2a3fdc388747b9eaf4a4a4f2035c1c9ddb26d0
factor out strbuf_expand_bad_format()

Extract a function for reporting placeholders that are not enclosed in a
parenthesis or are unknown.  This reduces the number of strings to
translate and improves consistency across commands.  Call it at the end
of the if/else chain, after exhausting all accepted possibilities.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/ls-files.c
builtin/ls-tree.c
strbuf.c
strbuf.h