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>
This commit is contained in:

committed by
Junio C Hamano

parent
35ee755a8c
commit
5a59a2301f
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user