diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2019-02-16 18:24:41 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-02-20 12:31:56 -0800 |
commit | 5a59a2301f6ec9bcf1b101edb9ca33beb465842f (patch) | |
tree | e343ac79b7b9039a26f7ff9545e5bee53f06f8b2 /builtin/commit.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 'builtin/commit.c')
-rw-r--r-- | builtin/commit.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/builtin/commit.c b/builtin/commit.c index 2986553d5f..b9e396f5e3 100644 --- a/builtin/commit.c +++ b/builtin/commit.c @@ -1038,6 +1038,10 @@ static void handle_untracked_files_arg(struct wt_status *s) s->show_untracked_files = SHOW_NORMAL_UNTRACKED_FILES; else if (!strcmp(untracked_files_arg, "all")) s->show_untracked_files = SHOW_ALL_UNTRACKED_FILES; + /* + * Please update $__git_untracked_file_modes in + * git-completion.bash when you add new options + */ else die(_("Invalid untracked files mode '%s'"), untracked_files_arg); } @@ -1179,6 +1183,10 @@ static int parse_and_validate_options(int argc, const char *argv[], else if (!strcmp(cleanup_arg, "scissors")) cleanup_mode = use_editor ? COMMIT_MSG_CLEANUP_SCISSORS : COMMIT_MSG_CLEANUP_SPACE; + /* + * Please update _git_commit() in git-completion.bash when you + * add new options. + */ else die(_("Invalid cleanup mode %s"), cleanup_arg); |