diff options
author | Felipe Contreras <felipe.contreras@gmail.com> | 2021-06-17 11:17:08 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-06-19 16:36:16 +0900 |
commit | 340062243a474b8fa56f4c3f6572bf015392f7f9 (patch) | |
tree | 647dad919cfcca473733f3bb2c4eb68cc145a444 /trace2 | |
parent | The second batch (diff) | |
download | tgif-340062243a474b8fa56f4c3f6572bf015392f7f9.tar.xz |
pull: cleanup autostash check
Currently "git pull --rebase" takes a shortcut in the case a
fast-forward merge is possible; run_merge() is called with --ff-only.
However, "git merge" didn't have an --autostash option, so, when "git
pull --rebase --autostash" was called *and* the fast-forward merge
shortcut was taken, then the pull failed.
This was fixed in commit f15e7cf5cc (pull: ff --rebase --autostash
works in dirty repo, 2017-06-01) by simply skipping the fast-forward
merge shortcut.
Later on "git merge" learned the --autostash option [a03b55530a
(merge: teach --autostash option, 2020-04-07)], and so did "git pull"
[d9f15d37f1 (pull: pass --autostash to merge, 2020-04-07)].
Therefore it's not necessary to skip the fast-forward merge shortcut
anymore when called with --rebase --autostash.
Let's always take the fast-forward merge shortcut by essentially
reverting f15e7cf5cc.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'trace2')
0 files changed, 0 insertions, 0 deletions