Skip to content

Commit bb52e7f

Browse files
committed
Merge branch 'jc/am-report-3way'
When "git am -3" needs to fall back to an application to a synthesized preimage followed by a 3-way merge, the paths that needed such treatment are now reported to the end user, so that the result in them can be eyeballed with extra care. * jc/am-report-3way: am -3: list the paths that needed 3-way fallback
2 parents 334dde8 + 5d86861 commit bb52e7f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

git-am.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,12 @@ fall_back_3way () {
139139
say Using index info to reconstruct a base tree...
140140

141141
cmd='GIT_INDEX_FILE="$dotest/patch-merge-tmp-index"'
142+
143+
if test -z "$GIT_QUIET"
144+
then
145+
eval "$cmd git diff-index --cached --diff-filter=AM --name-status HEAD"
146+
fi
147+
142148
cmd="$cmd git apply --cached $git_apply_opt"' <"$dotest/patch"'
143149
if eval "$cmd"
144150
then

0 commit comments

Comments
 (0)