]> git.ipfire.org Git - thirdparty/git.git/commit
parse-options.c: use optbug() instead of BUG() "opts" check
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Thu, 2 Jun 2022 12:25:35 +0000 (14:25 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 2 Jun 2022 19:51:35 +0000 (12:51 -0700)
commit5b2f5d92ca5afc118d3fb798c1f25863a5011a01
tree3aaac251e03f591198e7ff5e0a1896092a04fed6
parent53ca569419aed9706b052c48656715ab0b5f14fd
parse-options.c: use optbug() instead of BUG() "opts" check

Change the assertions added in bf3ff338a25 (parse-options: stop
abusing 'callback' for lowlevel callbacks, 2019-01-27) to use optbug()
instead of BUG(). At this point we're looping over individual options,
so if we encounter any issues we'd like to report the offending option.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
parse-options.c