]> asedeno.scripts.mit.edu Git - git.git/commitdiff
bash: Add more long options to be completed with "git --<TAB>"
authorTeemu Likonen <tlikonen@iki.fi>
Thu, 6 Mar 2008 16:52:37 +0000 (18:52 +0200)
committerShawn O. Pearce <spearce@spearce.org>
Tue, 11 Mar 2008 00:00:40 +0000 (20:00 -0400)
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>
contrib/completion/git-completion.bash

index fc108e48288874dcaa3e2943dd7cca16ae453697..2d11d0a97fde69492d25ef31cb517094758e0a16 100755 (executable)
@@ -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)" ;;