git-am: record full index line in the patch used while rebasing
[gitweb.git] / git-am.sh
index c682d34094d618734ac52d6d7e15a6c10ccfdeb6..0e0a0966f4d2489cd944a12b9fe13db4958947d7 100755 (executable)
--- a/git-am.sh
+++ b/git-am.sh
@@ -664,7 +664,7 @@ do
                        sed -e '1,/^$/d' >"$dotest/msg-clean"
                        echo "$commit" >"$dotest/original-commit"
                        get_author_ident_from_commit "$commit" >"$dotest/author-script"
-                       git diff-tree --root --binary "$commit" >"$dotest/patch"
+                       git diff-tree --root --binary --full-index "$commit" >"$dotest/patch"
                else
                        git mailinfo $keep $no_inbody_headers $scissors $utf8 "$dotest/msg" "$dotest/patch" \
                                <"$dotest/$msgnum" >"$dotest/info" ||