Skip to content

Commit

Permalink
Merge branch 'jc/am-report-3way'
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Junio C Hamano committed Apr 20, 2012
2 parents 334dde8 + 5d86861 commit bb52e7f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions git-am.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,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
Expand Down

0 comments on commit bb52e7f

Please sign in to comment.