Merge branch 'js/maint-am-skip-performance-regression'
authorJunio C Hamano <gitster@pobox.com>
Mon, 14 Sep 2015 21:59:07 +0000 (14:59 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 14 Sep 2015 21:59:13 +0000 (14:59 -0700)
Recent versions of scripted "git am" has a performance regression in
"git am --skip" codepath, which no longer exists in the built-in
version on the 'master' front. Fix the regression in the last
scripted version that appear in 2.5.x maintenance track and older.

* js/maint-am-skip-performance-regression:
am --skip/--abort: merge HEAD/ORIG_HEAD tree into index

contrib/examples/git-am.sh
index 3b770281232904132ac10620ded4a36d36a00be5..dd539f1a8aa5cac185f427da6100a5d895411bfb 100755 (executable)
@@ -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"