Skip to content

Commit c282cb6

Browse files
committed
Merge 'am-submodules' into HEAD
2 parents dd9c6db + e48eeac commit c282cb6

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

git-am.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,8 @@ case "$resolved" in
604604
'')
605605
files=$(git ls-files) ;;
606606
?*)
607-
files=$(git diff-index --cached --name-only HEAD --) ;;
607+
files=$(git diff-index --ignore-submodules --cached \
608+
--name-only HEAD --) ;;
608609
esac || exit
609610
if test "$files"
610611
then
@@ -784,7 +785,8 @@ To restore the original branch and stop patching run \"\$cmdline --abort\"."
784785
case "$resolved$interactive" in
785786
tt)
786787
# 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"
788790
;;
789791
esac
790792
esac
@@ -860,7 +862,7 @@ To restore the original branch and stop patching run \"\$cmdline --abort\"."
860862
# trust what the user has in the index file and the
861863
# working tree.
862864
resolved=
863-
git diff-index --quiet --cached HEAD -- && {
865+
git diff-index --ignore-submodules --quiet --cached HEAD -- && {
864866
gettextln "No changes - did you forget to use 'git add'?
865867
If there is nothing left to stage, chances are that something else
866868
already introduced the same changes; you might want to skip this patch."
@@ -884,7 +886,8 @@ did you forget to use 'git add'?"
884886
then
885887
# Applying the patch to an earlier tree and merging the
886888
# 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 -- && {
888891
say "$(gettext "No changes -- Patch already applied.")"
889892
go_next
890893
continue

0 commit comments

Comments
 (0)