bundle: use OPT_PASSTHRU_ARGV
commitd089a06421c86d120f50f05020ca6b833b068dcb
authorRené Scharfe <l.s.r@web.de>
Sat, 29 Jul 2023 20:40:27 +0000 (29 22:40 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 31 Jul 2023 15:33:53 +0000 (31 08:33 -0700)
tree0c520abd49eb4be6ca209d85a4002484d0edf3ac
parentfb7d80edcae482f4fa5d4be0227dc3054734e5f3
bundle: use OPT_PASSTHRU_ARGV

"git bundle" passes the progress control options to "git pack-objects"
by parsing and then recreating them explicitly.  Simplify that process
by using OPT_PASSTHRU_ARGV instead.

This also fixes --no-quiet, which has been doing the same as --quiet
since its introduction by 79862b6b77 (bundle-create: progress output
control, 2019-11-10) because it had been defined using OPT_SET_INT with
a value of 0, which sets 0 when negated as well.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/bundle.c
t/t6020-bundle-misc.sh