@@ -604,7 +604,8 @@ case "$resolved" in
604
604
' ' )
605
605
files=$( git ls-files) ;;
606
606
?* )
607
- files=$( git diff-index --cached --name-only HEAD --) ;;
607
+ files=$( git diff-index --ignore-submodules --cached \
608
+ --name-only HEAD --) ;;
608
609
esac || exit
609
610
if test " $files "
610
611
then
@@ -784,7 +785,8 @@ To restore the original branch and stop patching run \"\$cmdline --abort\"."
784
785
case " $resolved$interactive " in
785
786
tt)
786
787
# This is used only for interactive view option.
787
- git diff-index -p --cached HEAD -- > " $dotest /patch"
788
+ git diff-index --ignore-submodules -p --cached \
789
+ HEAD -- > " $dotest /patch"
788
790
;;
789
791
esac
790
792
esac
@@ -860,7 +862,7 @@ To restore the original branch and stop patching run \"\$cmdline --abort\"."
860
862
# trust what the user has in the index file and the
861
863
# working tree.
862
864
resolved=
863
- git diff-index --quiet --cached HEAD -- && {
865
+ git diff-index --ignore-submodules -- quiet --cached HEAD -- && {
864
866
gettextln " No changes - did you forget to use 'git add'?
865
867
If there is nothing left to stage, chances are that something else
866
868
already introduced the same changes; you might want to skip this patch."
@@ -884,7 +886,8 @@ did you forget to use 'git add'?"
884
886
then
885
887
# Applying the patch to an earlier tree and merging the
886
888
# result may have produced the same tree as ours.
887
- git diff-index --quiet --cached HEAD -- && {
889
+ git diff-index --ignore-submodules --quiet --cached \
890
+ HEAD -- && {
888
891
say " $( gettext " No changes -- Patch already applied." ) "
889
892
go_next
890
893
continue
0 commit comments