Skip to content

Commit aebf83d

Browse files
committed
Merge branch 'dm/submodule-update-i-shorthand'
The '-i' shorthand for the '--init' option, which was accepted by the 'git submodule update' command until it was broken in a modernization of the option-parsing code, has been restored. * dm/submodule-update-i-shorthand: submodule--helper: accept '-i' shorthand for update --init
2 parents 5d2e770 + ff1da37 commit aebf83d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

builtin/submodule--helper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2990,7 +2990,7 @@ static int module_update(int argc, const char **argv, const char *prefix,
29902990
struct option module_update_options[] = {
29912991
OPT__SUPER_PREFIX(&opt.super_prefix),
29922992
OPT__FORCE(&opt.force, N_("force checkout updates"), 0),
2993-
OPT_BOOL(0, "init", &opt.init,
2993+
OPT_BOOL('i', "init", &opt.init,
29942994
N_("initialize uninitialized submodules before update")),
29952995
OPT_BOOL(0, "remote", &opt.remote,
29962996
N_("use SHA-1 of submodule's remote tracking branch")),

0 commit comments

Comments
 (0)