Skip to content

Commit f7bdb32

Browse files
chooglengitster
authored andcommitted
submodule--helper: remove update-module-mode
This is dead code - it has not been used since c51f8f9 (submodule--helper: run update procedures from C, 2021-08-24). Signed-off-by: Glen Choo <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent aca8568 commit f7bdb32

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

builtin/submodule--helper.c

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1957,29 +1957,6 @@ static void determine_submodule_update_strategy(struct repository *r,
19571957
free(key);
19581958
}
19591959

1960-
static int module_update_module_mode(int argc, const char **argv, const char *prefix)
1961-
{
1962-
const char *path, *update = NULL;
1963-
int just_cloned;
1964-
struct submodule_update_strategy update_strategy = { .type = SM_UPDATE_CHECKOUT };
1965-
1966-
if (argc < 3 || argc > 4)
1967-
die("submodule--helper update-module-clone expects <just-cloned> <path> [<update>]");
1968-
1969-
just_cloned = git_config_int("just_cloned", argv[1]);
1970-
path = argv[2];
1971-
1972-
if (argc == 4)
1973-
update = argv[3];
1974-
1975-
determine_submodule_update_strategy(the_repository,
1976-
just_cloned, path, update,
1977-
&update_strategy);
1978-
fputs(submodule_strategy_to_string(&update_strategy), stdout);
1979-
1980-
return 0;
1981-
}
1982-
19831960
struct update_clone_data {
19841961
const struct submodule *sub;
19851962
struct object_id oid;
@@ -3430,7 +3407,6 @@ static struct cmd_struct commands[] = {
34303407
{"name", module_name, 0},
34313408
{"clone", module_clone, 0},
34323409
{"add", module_add, SUPPORT_SUPER_PREFIX},
3433-
{"update-module-mode", module_update_module_mode, 0},
34343410
{"update-clone", update_clone, 0},
34353411
{"run-update-procedure", run_update_procedure, 0},
34363412
{"ensure-core-worktree", ensure_core_worktree, 0},

0 commit comments

Comments
 (0)