Browse Source

Merge branch 'fix'

* fix:
  checkout: use --aggressive when running a 3-way merge (-m).
  revert/cherry-pick: use aggressive merge.
maint
Junio C Hamano 19 years ago
parent
commit
f7a3276bab
  1. 2
      git-checkout.sh
  2. 2
      git-revert.sh

2
git-checkout.sh

@ -144,7 +144,7 @@ else
work=`git write-tree` && work=`git write-tree` &&
git read-tree --reset $new && git read-tree --reset $new &&
git checkout-index -f -u -q -a && git checkout-index -f -u -q -a &&
git read-tree -m -u $old $new $work || exit git read-tree -m -u --aggressive $old $new $work || exit


if result=`git write-tree 2>/dev/null` if result=`git write-tree 2>/dev/null`
then then

2
git-revert.sh

@ -137,7 +137,7 @@ esac >.msg
# $prev and $commit on top of us (when cherry-picking or replaying). # $prev and $commit on top of us (when cherry-picking or replaying).


echo >&2 "First trying simple merge strategy to $me." echo >&2 "First trying simple merge strategy to $me."
git-read-tree -m -u $base $head $next && git-read-tree -m -u --aggressive $base $head $next &&
result=$(git-write-tree 2>/dev/null) || { result=$(git-write-tree 2>/dev/null) || {
echo >&2 "Simple $me fails; trying Automatic $me." echo >&2 "Simple $me fails; trying Automatic $me."
git-merge-index -o git-merge-one-file -a || { git-merge-index -o git-merge-one-file -a || {

Loading…
Cancel
Save