summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Teemu Likonen <tlikonen@iki.fi>2008-03-06 18:52:37 +0200
committerLibravatar Shawn O. Pearce <spearce@spearce.org>2008-03-10 20:00:40 -0400
commitce5a2c956f10f84d8403fc4e94106a6b33a5024a (patch)
tree6d5ded2ebc8ea7131239d8a958f474411417574d
parentbash: use __gitdir when completing 'git rebase' options (diff)
downloadtgif-ce5a2c956f10f84d8403fc4e94106a6b33a5024a.tar.xz
bash: Add more long options to be completed with "git --<TAB>"
Add the following long options to be completed with command "git": --paginate --work-tree= --help Signed-off-by: Teemu Likonen <tlikonen@iki.fi> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
-rwxr-xr-xcontrib/completion/git-completion.bash3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index fc108e4828..2d11d0a97f 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1271,11 +1271,14 @@ _git ()
case "${COMP_WORDS[COMP_CWORD]}" in
--*=*) COMPREPLY=() ;;
--*) __gitcomp "
+ --paginate
--no-pager
--git-dir=
--bare
--version
--exec-path
+ --work-tree=
+ --help
"
;;
*) __gitcomp "$(__git_commands) $(__git_aliases)" ;;