am -3: list the paths that needed 3-way fallback
[gitweb.git] / git-am.sh
index faae82071985e756af18f2f5644b8a4a2bb3bd03..e686a17594bfd1b53ae43e2012c2f497c1975fa2 100755 (executable)
--- a/git-am.sh
+++ b/git-am.sh
@@ -138,6 +138,12 @@ fall_back_3way () {
     say Using index info to reconstruct a base tree...
 
     cmd='GIT_INDEX_FILE="$dotest/patch-merge-tmp-index"'
+
+    if test -z "$GIT_QUIET"
+    then
+       eval "$cmd git diff-index --cached --diff-filter=AM --name-status HEAD"
+    fi
+
     cmd="$cmd git apply --cached $git_apply_opt"' <"$dotest/patch"'
     if eval "$cmd"
     then
@@ -380,8 +386,8 @@ do
        -i|--interactive)
                interactive=t ;;
        -b|--binary)
-               echo >&2 "The -b/--binary option was deprecated in 1.6.0 and removed in 1.7.10."
-               die "Please adjust your scripts."
+               echo >&2 "The $1 option has been a no-op for long time, and"
+               echo >&2 "it will be removed. Please do not use it anymore."
                ;;
        -3|--3way)
                threeway=t ;;