From e73caa16ff142ef6fb15d85cd70f980950b67eeb Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Wed, 9 Sep 2015 10:14:20 +0200 Subject: [PATCH] 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 Original report: https://github.com/git-for-windows/git/issues/365 Acked-by: Paul Tan Signed-off-by: Johannes Schindelin --- git-am.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-am.sh b/git-am.sh index b66fc2bb54..f4061e11ea 100755 --- a/git-am.sh +++ b/git-am.sh @@ -512,7 +512,7 @@ then git read-tree --reset -u $head_tree $head_tree && index_tree=$(git write-tree) && git read-tree -m -u $index_tree $head_tree - git read-tree $head_tree + git read-tree -m $head_tree ;; ,t) if test -f "$dotest/rebasing"