Skip to content

Commit 91d23be

Browse files
committed
Merge branch 'tr/maint-1.6.5-bash-prompt-show-submodule-changes' into maint-1.6.5
* tr/maint-1.6.5-bash-prompt-show-submodule-changes: bash completion: factor submodules into dirty state
2 parents e770655 + cf6e7ba commit 91d23be

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

contrib/completion/git-completion.bash

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,9 @@ __git_ps1 ()
148148
elif [ "true" = "$(git rev-parse --is-inside-work-tree 2>/dev/null)" ]; then
149149
if [ -n "${GIT_PS1_SHOWDIRTYSTATE-}" ]; then
150150
if [ "$(git config --bool bash.showDirtyState)" != "false" ]; then
151-
git diff --no-ext-diff --ignore-submodules \
152-
--quiet --exit-code || w="*"
151+
git diff --no-ext-diff --quiet --exit-code || w="*"
153152
if git rev-parse --quiet --verify HEAD >/dev/null; then
154-
git diff-index --cached --quiet \
155-
--ignore-submodules HEAD -- || i="+"
153+
git diff-index --cached --quiet HEAD -- || i="+"
156154
else
157155
i="#"
158156
fi

0 commit comments

Comments
 (0)