rebase: generify reset_head()
commitf213f069fb57996505f9d6c9dd0f4a3ef53e87e4
authorDenton Liu <liu.denton@gmail.com>
Tue, 7 Apr 2020 14:27:59 +0000 (7 10:27 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 10 Apr 2020 16:28:02 +0000 (10 09:28 -0700)
tree7ac9213f662bbcbdace68fbf4810bd328e68557b
parent86ed00aff4b86eed6ecc606e9d5f7828a1dca353
rebase: generify reset_head()

In the future, we plan on lib-ifying reset_head() so we need it to
be more generic. Make it more generic by making it accept a
`struct repository` argument instead of implicitly using the non-repo
functions. Also, make it accept a `const char *default_reflog_action`
argument so that the default action of "rebase" isn't hardcoded in.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/rebase.c