diff options
author | Junio C Hamano <junkio@cox.net> | 2006-02-24 02:21:28 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-02-24 02:21:28 -0800 |
commit | a68de9592e4565a2cf3e14b3bc9c9cd57d7306d5 (patch) | |
tree | a43c27e8497be9aa9bc27eef46150158cdf369bb | |
parent | 3efaa937a52aff14ca35207fd3a8a4d1d1ed2067 (diff) | |
parent | 6d5129ac098e8b9c270efd5fa2695163122a0a46 (diff) | |
download | git-a68de9592e4565a2cf3e14b3bc9c9cd57d7306d5.tar.gz git-a68de9592e4565a2cf3e14b3bc9c9cd57d7306d5.tar.xz |
Merge fixes early for next maint series.
-rwxr-xr-x | git-am.sh | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -300,7 +300,7 @@ do } >"$dotest/final-commit" ;; *) - case "$resolved,$interactive" in + case "$resolved$interactive" in tt) # This is used only for interactive view option. git-diff-index -p --cached HEAD >"$dotest/patch" @@ -364,6 +364,12 @@ do # trust what the user has in the index file and the # working tree. resolved= + changed="$(git-diff-index --cached --name-only HEAD)" + if test '' = "$changed" + then + echo "No changes - did you forget update-index?" + stop_here $this + fi apply_status=0 ;; esac @@ -374,7 +380,7 @@ do then # Applying the patch to an earlier tree and merging the # result may have produced the same tree as ours. - changed="$(git-diff-index --cached --name-only -z HEAD)" + changed="$(git-diff-index --cached --name-only HEAD)" if test '' = "$changed" then echo No changes -- Patch already applied. |