@@ -593,7 +593,8 @@ case "$resolved" in
593
593
' ' )
594
594
files=$( git ls-files) ;;
595
595
?* )
596
- files=$( git diff-index --cached --name-only HEAD --) ;;
596
+ files=$( git diff-index --ignore-submodules --cached \
597
+ --name-only HEAD --) ;;
597
598
esac || exit
598
599
if test " $files "
599
600
then
@@ -767,7 +768,8 @@ To restore the original branch and stop patching run \"\$cmdline --abort\"."
767
768
case " $resolved$interactive " in
768
769
tt)
769
770
# This is used only for interactive view option.
770
- git diff-index -p --cached HEAD -- > " $dotest /patch"
771
+ git diff-index --ignore-submodules -p --cached \
772
+ HEAD -- > " $dotest /patch"
771
773
;;
772
774
esac
773
775
esac
@@ -843,7 +845,7 @@ To restore the original branch and stop patching run \"\$cmdline --abort\"."
843
845
# trust what the user has in the index file and the
844
846
# working tree.
845
847
resolved=
846
- git diff-index --quiet --cached HEAD -- && {
848
+ git diff-index --ignore-submodules -- quiet --cached HEAD -- && {
847
849
gettextln " No changes - did you forget to use 'git add'?
848
850
If there is nothing left to stage, chances are that something else
849
851
already introduced the same changes; you might want to skip this patch."
@@ -867,7 +869,8 @@ did you forget to use 'git add'?"
867
869
then
868
870
# Applying the patch to an earlier tree and merging the
869
871
# result may have produced the same tree as ours.
870
- git diff-index --quiet --cached HEAD -- && {
872
+ git diff-index --ignore-submodules --quiet --cached \
873
+ HEAD -- && {
871
874
say " $( gettext " No changes -- Patch already applied." ) "
872
875
go_next
873
876
continue
0 commit comments