Merge branch 'pb/opt-cmdmode-doc' into maint
[gitweb.git] / contrib / completion / git-completion.bash
index 15ebba51dc11ec28f98f6c759719125f155aa5d3..e3918c87e3adf32a9d7a4f0320c92c497376b9b5 100644 (file)
@@ -2060,6 +2060,7 @@ _git_config ()
                core.sparseCheckout
                core.symlinks
                core.trustctime
+               core.untrackedCache
                core.warnAmbiguousRefs
                core.whitespace
                core.worktree
@@ -2414,8 +2415,8 @@ _git_stash ()
                show,--*|branch,--*)
                        ;;
                branch,*)
-                 if [ $cword -eq 3 ]; then
-                       __gitcomp_nl "$(__git_refs)";
+                       if [ $cword -eq 3 ]; then
+                               __gitcomp_nl "$(__git_refs)";
                        else
                                __gitcomp_nl "$(git --git-dir="$(__gitdir)" stash list \
                                                | sed -n -e 's/:.*//p')"