Skip to content

Commit

Permalink
checkout: use --aggressive when running a 3-way merge (-m).
Browse files Browse the repository at this point in the history
After doing an in-index 3-way merge, we always do the stock
"merge-index merge-one-file" without doing anything fancy;
use of --aggressive helps performance quite a bit.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed May 10, 2006
1 parent d180285 commit 8d7a397
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-checkout.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ else
work=`git write-tree` &&
git read-tree --reset $new &&
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`
then
Expand Down

0 comments on commit 8d7a397

Please sign in to comment.