diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2019-02-16 14:24:41 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-02-20 23:31:56 +0300 |
commit | 5a59a2301f6ec9bcf1b101edb9ca33beb465842f (patch) | |
tree | e343ac79b7b9039a26f7ff9545e5bee53f06f8b2 /submodule-config.c | |
parent | 35ee755a8c43bcb3c2786522d423f006c23d32df (diff) |
completion: add more parameter value completion
This adds value completion for a couple more paramters. To make it
easier to maintain these hard coded lists, add a comment at the original
list/code to remind people to update git-completion.bash too.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'submodule-config.c')
-rw-r--r-- | submodule-config.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/submodule-config.c b/submodule-config.c index 52702c62d9..66653e86b9 100644 --- a/submodule-config.c +++ b/submodule-config.c @@ -281,7 +281,10 @@ static int parse_fetch_recurse(const char *opt, const char *arg, default: if (!strcmp(arg, "on-demand")) return RECURSE_SUBMODULES_ON_DEMAND; - + /* + * Please update $__git_fetch_recurse_submodules in + * git-completion.bash when you add new options. + */ if (die_on_error) die("bad %s argument: %s", opt, arg); else @@ -362,6 +365,10 @@ static int parse_push_recurse(const char *opt, const char *arg, return RECURSE_SUBMODULES_CHECK; else if (!strcmp(arg, "only")) return RECURSE_SUBMODULES_ONLY; + /* + * Please update $__git_push_recurse_submodules in + * git-completion.bash when you add new modes. + */ else if (die_on_error) die("bad %s argument: %s", opt, arg); else |