diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2022-11-08 15:10:39 +0100 |
---|---|---|
committer | Taylor Blau <me@ttaylorr.com> | 2022-11-08 20:55:30 +0100 |
commit | 1b6e2001c7fd96214b1fe2f910fad5cbb60b607a (patch) | |
tree | 538600be34c264d632b2d764270c78416ef343e4 /builtin/submodule--helper.c | |
parent | submodule--helper: remove --prefix from "absorbgitdirs" (diff) | |
download | git-1b6e2001c7fd96214b1fe2f910fad5cbb60b607a.tar.xz git-1b6e2001c7fd96214b1fe2f910fad5cbb60b607a.zip |
submodule--helper: drop "update --prefix <pfx>" for "-C <pfx> update"
Since 29a5e9e1ffe (submodule--helper update-clone: learn --init,
2022-03-04) we've been passing "-C <prefix>" from "git-submodule.sh"
whenever we pass "--prefix <prefix>", so the latter is redundant to
the former. Let's drop the "--prefix" option.
Suggested-by: Glen Choo <chooglen@google.com>
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Diffstat (limited to 'builtin/submodule--helper.c')
-rw-r--r-- | builtin/submodule--helper.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c index fefedcf809..03d1b58aca 100644 --- a/builtin/submodule--helper.c +++ b/builtin/submodule--helper.c @@ -2643,9 +2643,6 @@ static int module_update(int argc, const char **argv, const char *prefix) N_("traverse submodules recursively")), OPT_BOOL('N', "no-fetch", &opt.nofetch, N_("don't fetch new objects from the remote site")), - OPT_STRING(0, "prefix", &opt.prefix, - N_("path"), - N_("path into the working tree")), OPT_SET_INT(0, "checkout", &opt.update_default, N_("use the 'checkout' update strategy (default)"), SM_UPDATE_CHECKOUT), @@ -2701,6 +2698,7 @@ static int module_update(int argc, const char **argv, const char *prefix) } opt.filter_options = &filter_options; + opt.prefix = prefix; if (opt.update_default) opt.update_strategy.type = opt.update_default; |