]> git.ipfire.org Git - thirdparty/git.git/commit
built-in rebase: reinstate `checkout -q` behavior where appropriate
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 12 Nov 2018 11:44:32 +0000 (03:44 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 13 Nov 2018 06:05:02 +0000 (15:05 +0900)
commitbac2a1e36ffd7ae8b62e1ba708b64979c0f10ee8
tree38880a17123a414c198212765905a7e60abb40bf
parent73d6d7b24b498df98295763dd82c010c15e65db5
built-in rebase: reinstate `checkout -q` behavior where appropriate

When we converted a `git checkout -q $onto^0` call to use
`reset_head()`, we inadvertently incurred a change from a twoway_merge
to a oneway_merge, as if we wanted a `git reset --hard` instead.

This has performance ramifications under certain, though, as the
oneway_merge needs to lstat() every single index entry whereas
twoway_merge does not.

So let's go back to the old behavior.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/rebase.c