From: Johannes Schindelin Date: Mon, 2 Jan 2017 15:27:53 +0000 (+0100) Subject: sequencer (rebase -i): update refs after a successful rebase X-Git-Tag: v2.12.0-rc0~38^2~21 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/4b83ce9f6772451d4582dc1f0891790acbdf4eb1?ds=sidebyside;hp=4b83ce9f6772451d4582dc1f0891790acbdf4eb1 sequencer (rebase -i): update refs after a successful rebase An interactive rebase operates on a detached HEAD (to keep the reflog of the original branch relatively clean), and updates the branch only at the end. Now that the sequencer learns to perform interactive rebases, it also needs to learn the trick to update the branch before removing the directory containing the state of the interactive rebase. We introduce a new head_ref variable in a wider scope than necessary at the moment, to allow for a later patch that prints out "Successfully rebased and updated ". Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano ---