builtin/rebase: remove a call to get_oid() on `options.switch_to'
authorAlban Gruin <alban.gruin@gmail.com>
Tue, 21 Jan 2020 19:32:26 +0000 (20:32 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 26 Feb 2020 16:39:21 +0000 (08:39 -0800)
commit240fc04f81fcc6c646ec08bfab4662bb09e44c50
tree8bbed0059549df94c58af843ccdce60e0bdd9187
parentc522f061d551c9bb8684a7c3859b2ece4499b56b
builtin/rebase: remove a call to get_oid() on `options.switch_to'

When `options.switch_to' is set, `options.orig_head' is populated right
after with the object name the ref/commit argument points at.

Therefore, there is no need to parse `switch_to' again.

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