reset: extract reset_head() from rebase
authorDenton Liu <liu.denton@gmail.com>
Tue, 7 Apr 2020 14:28:00 +0000 (10:28 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 10 Apr 2020 16:28:02 +0000 (09:28 -0700)
commitb309a9710899dab2f76455526f573a90fad5d13c
tree3480c1f5210dc8612234238315612002433039d6
parentf213f069fb57996505f9d6c9dd0f4a3ef53e87e4
reset: extract reset_head() from rebase

Continue the process of lib-ifying the autostash code. In a future
commit, this will be used to implement `--autostash` in other builtins.

This patch is best viewed with `--color-moved`.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
builtin/rebase.c
reset.c [new file with mode: 0644]
reset.h [new file with mode: 0644]