completion: add missing options to show-branch and show
[gitweb.git] / contrib / completion / git-completion.bash
index dd6cd250e35cb695107d4a9f610752e09ec5bbb7..a0c5794828a6ed00a3608d9ec22046478da83e96 100755 (executable)
@@ -1804,7 +1804,7 @@ _git_show ()
                return
                ;;
        --*)
-               __gitcomp "--pretty= --format=
+               __gitcomp "--pretty= --format= --abbrev-commit --oneline
                        $__git_diff_common_options
                        "
                return
@@ -1821,7 +1821,7 @@ _git_show_branch ()
                __gitcomp "
                        --all --remotes --topo-order --current --more=
                        --list --independent --merge-base --no-name
-                       --sha1-name --topics --reflog
+                       --sha1-name --sparse --topics --reflog
                        "
                return
                ;;