completion: factor out untracked file modes into a variable
Signed-off-by: Thomas Braun <thomas.braun@virtuell-zuhause.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
90f7b16b3a
commit
21d2a9e3cc
@ -1098,6 +1098,8 @@ _git_clone ()
|
||||
esac
|
||||
}
|
||||
|
||||
__git_untracked_file_modes="all no normal"
|
||||
|
||||
_git_commit ()
|
||||
{
|
||||
case "$prev" in
|
||||
@ -1119,7 +1121,7 @@ _git_commit ()
|
||||
return
|
||||
;;
|
||||
--untracked-files=*)
|
||||
__gitcomp "all no normal" "" "${cur##--untracked-files=}"
|
||||
__gitcomp "$__git_untracked_file_modes" "" "${cur##--untracked-files=}"
|
||||
return
|
||||
;;
|
||||
--*)
|
||||
|
Loading…
Reference in New Issue
Block a user