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
@ -82,6 +82,10 @@ static int list_replace_refs(const char *pattern, const char *format)
|
||||
data.format = REPLACE_FORMAT_MEDIUM;
|
||||
else if (!strcmp(format, "long"))
|
||||
data.format = REPLACE_FORMAT_LONG;
|
||||
/*
|
||||
* Please update _git_replace() in git-completion.bash when
|
||||
* you add new format
|
||||
*/
|
||||
else
|
||||
return error(_("invalid replace format '%s'\n"
|
||||
"valid formats are 'short', 'medium' and 'long'"),
|
||||
|
||||
Reference in New Issue
Block a user