Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit cb2e411

Browse files
committed
Merge 'am-submodules' into HEAD
2 parents 926a92b + 85fde08 commit cb2e411

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
@@ -586,7 +586,8 @@ case "$resolved" in
586586
'')
587587
files=$(git ls-files) ;;
588588
?*)
589-
files=$(git diff-index --cached --name-only HEAD --) ;;
589+
files=$(git diff-index --ignore-submodules --cached \
590+
--name-only HEAD --) ;;
590591
esac || exit
591592
if test "$files"
592593
then
@@ -760,7 +761,8 @@ To restore the original branch and stop patching run \"\$cmdline --abort\"."
760761
case "$resolved$interactive" in
761762
tt)
762763
# This is used only for interactive view option.
763-
git diff-index -p --cached HEAD -- >"$dotest/patch"
764+
git diff-index --ignore-submodules -p --cached \
765+
HEAD -- >"$dotest/patch"
764766
;;
765767
esac
766768
esac
@@ -836,7 +838,7 @@ To restore the original branch and stop patching run \"\$cmdline --abort\"."
836838
# trust what the user has in the index file and the
837839
# working tree.
838840
resolved=
839-
git diff-index --quiet --cached HEAD -- && {
841+
git diff-index --ignore-submodules --quiet --cached HEAD -- && {
840842
gettextln "No changes - did you forget to use 'git add'?
841843
If there is nothing left to stage, chances are that something else
842844
already introduced the same changes; you might want to skip this patch."
@@ -860,7 +862,8 @@ did you forget to use 'git add'?"
860862
then
861863
# Applying the patch to an earlier tree and merging the
862864
# result may have produced the same tree as ours.
863-
git diff-index --quiet --cached HEAD -- && {
865+
git diff-index --ignore-submodules --quiet --cached \
866+
HEAD -- && {
864867
say "$(gettext "No changes -- Patch already applied.")"
865868
go_next
866869
continue

0 commit comments

Comments
 (0)