aboutsummaryrefslogtreecommitdiffstats
path: root/submodule.c
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2022-11-08 15:10:40 +0100
committerTaylor Blau <me@ttaylorr.com>2022-11-08 14:55:30 -0500
commit69d94464e14de859ff56bcde7ebe0132201eceb9 (patch)
treef25497390635cc4bb0c1f429aac79445ac29364e /submodule.c
parentsubmodule--helper: drop "update --prefix <pfx>" for "-C <pfx> update" (diff)
downloadgit-69d94464e14de859ff56bcde7ebe0132201eceb9.tar.gz
git-69d94464e14de859ff56bcde7ebe0132201eceb9.zip
submodule--helper: use OPT_SUBCOMMAND() API
Have the cmd_submodule__helper() use the OPT_SUBCOMMAND() API introduced in fa83cc834da (parse-options: add support for parsing subcommands, 2022-08-19). This is only a marginal reduction in line count, but once we start unifying this with a yet-to-be-added "builtin/submodule.c" it'll be much easier to reason about those changes, as they'll both use OPT_SUBCOMMAND(). We don't need to worry about "argv[0]" being NULL in the die() because we'd have errored out in parse_options() as we're not using "PARSE_OPT_SUBCOMMAND_OPTIONAL". Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Taylor Blau <me@ttaylorr.com>
Diffstat (limited to 'submodule.c')
0 files changed, 0 insertions, 0 deletions