rebase: move `reset_head()` into a better spot
commitc5233708c5d67ffe78beb18a92794921b8e247d4
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 18 Jan 2019 15:09:24 +0000 (18 07:09 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 18 Jan 2019 18:11:45 +0000 (18 10:11 -0800)
tree18b04f7a2245c78e9c2b94d52d80878211a00087
parentb21ebb671bb7dea8d342225f0d66c41f4e54d5ca
rebase: move `reset_head()` into a better spot

Over the next commits, we want to make use of it in `run_am()` (i.e.
running the `--am` backend directly, without detouring to Unix shell
script code) which in turn will be called from `run_specific_rebase()`.

So let's move it before that latter function.

This commit is best viewed using --color-moved.

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