parse-options: drop parse_opt_unknown_cb()
commit4a4d9706ade6dcdca7cc16372f1f83f5011a5d2b
authorJeff King <peff@peff.net>
Tue, 28 Mar 2023 20:58:42 +0000 (28 16:58 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 Mar 2023 21:11:24 +0000 (28 14:11 -0700)
tree4bdddfff0ba30f3134d12c8fe796137f008bd755
parent126e3b3d2aa06c58994ed09e12cb0a0008897039
parse-options: drop parse_opt_unknown_cb()

This low-level callback was introduced in ce564eb1bd5 (parse-options:
add parse_opt_unknown_cb(), 2016-09-05) so that we could advertise
--indent-heuristic in git-blame's "-h" output, even though the option is
actually handled in parse_revision_opt(). We later stopped doing so in
44ae131e384 (builtin/blame.c: remove '--indent-heuristic' from usage
string, 2019-10-28).

This is a weird thing to do, and in the intervening years, we've never
used it again. Let's drop the helper in the name of simplicity.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
parse-options-cb.c
parse-options.h