]> git.ipfire.org Git - thirdparty/git.git/commit
bundle: framework for options before bundle file
authorRobin H. Johnson <robbat2@gentoo.org>
Sun, 10 Nov 2019 20:41:24 +0000 (12:41 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 11 Nov 2019 02:46:26 +0000 (11:46 +0900)
commit73c3253d75e1268946834e72147481fc9a66cc90
treeacd88c5878b7143fa7d0a8345f28b9f5712cf50b
parentd9f6f3b6195a0ca35642561e530798ad1469bd41
bundle: framework for options before bundle file

Make it possible for any of the git-bundle subcommands to include
options:
- before the sub-command
- after the sub-command, before the bundle filename

There is an immediate gain in support for help with all of the
sub-commands, where 'git bundle list-heads -h' previously returned an
error.

Downside here is an increase in code duplication that cannot be
trivially avoided short of shared global static options.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/bundle.c