]> git.ipfire.org Git - thirdparty/git.git/commit - sequencer.c
rebase -i: fix reflog message
authorPhillip Wood <phillip.wood@dunelm.org.uk>
Thu, 18 May 2017 10:02:32 +0000 (11:02 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 20 May 2017 09:24:25 +0000 (18:24 +0900)
commit4ab867b8fc8c19ae99c5414ffcbf57fb1609c94f
treea66c823bce3be4d9e83fdf67b1a9a63d394cabfa
parenta42e1b4194b02638ea4f590ac1e7d231274886d1
rebase -i: fix reflog message

When rebase -i was converted to C a bug was introduced into the code
that creates the reflog message. Instead of saying
rebase -i (finish): <head-name> onto <onto>
it says
rebase -i (finish): <head-name> onto <orig-head><onto>
as the strbuf is not reset between reading the value of <orig-head>
and <onto>.

Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Acked-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sequencer.c