summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTeemu Likonen <tlikonen@iki.fi>2008-03-06 16:52:37 (GMT)
committerShawn O. Pearce <spearce@spearce.org>2008-03-11 00:00:40 (GMT)
commitce5a2c956f10f84d8403fc4e94106a6b33a5024a (patch)
tree6d5ded2ebc8ea7131239d8a958f474411417574d
parent51fe120903370ca8bf384c839c8cfb70ee563eb0 (diff)
downloadgit-ce5a2c956f10f84d8403fc4e94106a6b33a5024a.zip
git-ce5a2c956f10f84d8403fc4e94106a6b33a5024a.tar.gz
git-ce5a2c956f10f84d8403fc4e94106a6b33a5024a.tar.bz2
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 fc108e4..2d11d0a 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)" ;;