git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
90f7b16
)
completion: factor out untracked file modes into a variable
author
Thomas Braun
<redacted>
Fri, 10 Jun 2016 10:12:04 +0000
(12:12 +0200)
committer
Junio C Hamano
<redacted>
Fri, 10 Jun 2016 18:54:49 +0000
(11:54 -0700)
Signed-off-by: Thomas Braun <redacted>
Signed-off-by: Junio C Hamano <redacted>
contrib/completion/git-completion.bash
patch
|
blob
|
history
diff --git
a/contrib/completion/git-completion.bash
b/contrib/completion/git-completion.bash
index e3918c87e3adf32a9d7a4f0320c92c497376b9b5..a44e00b45ecee1d6b811ed397d4eb6f79b829af5 100644
(file)
--- 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
;;
--*)
git clone https://git.99rst.org/PROJECT