]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/rebase.c
rebase -i: use struct object_id rather than looking up commit
authorPhillip Wood <phillip.wood@dunelm.org.uk>
Wed, 4 Nov 2020 15:29:38 +0000 (15:29 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 4 Nov 2020 22:10:41 +0000 (14:10 -0800)
commitf3e27a02d598084a0ef5c8dd6b410bd6a5c5299f
tree9d85937d9d4cc649fa862b0d11cda79044d7bc7c
parente100bea48102dca7e21359993085e89c7f154f9d
rebase -i: use struct object_id rather than looking up commit

We already have a struct object_id containing the oid that we want to
set ORIG_HEAD to so use that rather than converting it to a string and
then calling get_oid() on that string.

Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/rebase.c
sequencer.c
sequencer.h