Skip to content

Commit b0f8b21

Browse files
avargitster
authored andcommitted
submodule--helper: remove unused SUPPORT_SUPER_PREFIX flags
Remove the SUPPORT_SUPER_PREFIX flag from "add", "init" and "summary". For the "add" command it hasn't been used since [1], likewise for "init" and "summary" since [2] and [3], respectively. As implemented in 74866d7 (git: make super-prefix option, 2016-10-07) the SUPPORT_SUPER_PREFIX flag in git.c applies for the entire command, but as implemented in 89c8626 (submodule helper: support super prefix, 2016-12-08) we assert here in cmd_submodule__helper() that we're not getting the flag unexpectedly. 1. 8c8195e (submodule--helper: introduce add-clone subcommand, 2021-07-10) 2. 6e7c14e (submodule update --init: display correct path from submodule, 2017-01-06) 3. 1cf823d (submodule: remove unnecessary `prefix` based option logic, 2021-06-22) Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Glen Choo <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 58cec29 commit b0f8b21

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

builtin/submodule--helper.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3379,15 +3379,15 @@ static struct cmd_struct commands[] = {
33793379
{"list", module_list, 0},
33803380
{"name", module_name, 0},
33813381
{"clone", module_clone, 0},
3382-
{"add", module_add, SUPPORT_SUPER_PREFIX},
3382+
{"add", module_add, 0},
33833383
{"update", module_update, 0},
33843384
{"resolve-relative-url-test", resolve_relative_url_test, 0},
33853385
{"foreach", module_foreach, SUPPORT_SUPER_PREFIX},
3386-
{"init", module_init, SUPPORT_SUPER_PREFIX},
3386+
{"init", module_init, 0},
33873387
{"status", module_status, SUPPORT_SUPER_PREFIX},
33883388
{"sync", module_sync, SUPPORT_SUPER_PREFIX},
33893389
{"deinit", module_deinit, 0},
3390-
{"summary", module_summary, SUPPORT_SUPER_PREFIX},
3390+
{"summary", module_summary, 0},
33913391
{"push-check", push_check, 0},
33923392
{"absorbgitdirs", absorb_git_dirs, SUPPORT_SUPER_PREFIX},
33933393
{"is-active", is_active, 0},

0 commit comments

Comments
 (0)