diff options
author | Thomas Braun <thomas.braun@virtuell-zuhause.de> | 2016-06-10 12:12:04 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-06-10 11:54:49 -0700 |
commit | 21d2a9e3cce6167a3cf69303ad5b35ec819a763b (patch) | |
tree | 5f8a4248d9c4bb728ae33f71de3263ed67596489 /contrib/completion/git-completion.bash | |
parent | Git 2.8 (diff) | |
download | tgif-21d2a9e3cce6167a3cf69303ad5b35ec819a763b.tar.xz |
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>
Diffstat (limited to 'contrib/completion/git-completion.bash')
-rw-r--r-- | contrib/completion/git-completion.bash | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index e3918c87e3..a44e00b45e 100644 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -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 ;; --*) |