Skip to content

Commit e73caa1

Browse files
committed
am --skip/--abort: merge HEAD/ORIG_HEAD tree into index
This is a backport of the corresponding patch to the builtin am in 2.6: 3ecc704 (am --skip/--abort: merge HEAD/ORIG_HEAD tree into index, 2015-08-19). Reportedly, it can make a huge difference on Windows, in one case a `git rebase --skip` took 1m40s without, and 5s with, this patch. Reported-and-suggested-by: Kim Gybels <[email protected]> Original report: #365 Acked-by: Paul Tan <[email protected]> Signed-off-by: Johannes Schindelin <[email protected]>
1 parent a6803cd commit e73caa1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-am.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ then
512512
git read-tree --reset -u $head_tree $head_tree &&
513513
index_tree=$(git write-tree) &&
514514
git read-tree -m -u $index_tree $head_tree
515-
git read-tree $head_tree
515+
git read-tree -m $head_tree
516516
;;
517517
,t)
518518
if test -f "$dotest/rebasing"

0 commit comments

Comments
 (0)