Code

bash: Add more long options to be completed with "git --<TAB>"
[git.git] / 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)" ;;