aboutsummaryrefslogtreecommitdiffstats
path: root/diffcore-pickaxe.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2022-12-14 11:20:19 -0500
committerJunio C Hamano <gitster@pobox.com>2022-12-15 09:14:00 +0900
commitdda4fc1a849e2407c30b4619d64221c2b38bd570 (patch)
tree34b3dc0ed8f02ab44769de17ee20a87a389c47fa /diffcore-pickaxe.c
parentref-filter: factor out "%(foo) does not take arguments" errors (diff)
downloadgit-dda4fc1a849e2407c30b4619d64221c2b38bd570.tar.gz
git-dda4fc1a849e2407c30b4619d64221c2b38bd570.zip
ref-filter: factor out "unrecognized %(foo) arg" errors
Atom parsers that take arguments generally have a catch-all for "this arg is not recognized". Most of them use the same printf template, which is good, because it makes life easier for translators. Let's pull this template into a helper function, which makes the code in the parsers shorter and avoids any possibility of differences. As with the previous commit, we'll pick an arbitrary atom to make sure the test suite covers this code. Signed-off-by: Jeff King <peff@peff.net> Acked-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diffcore-pickaxe.c')
0 files changed, 0 insertions, 0 deletions