builtin/reset: compute checkout metadata for reset
authorbrian m. carlson <bk2204@github.com>
Mon, 16 Mar 2020 18:05:07 +0000 (18:05 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 16 Mar 2020 18:37:02 +0000 (11:37 -0700)
commit4cf76f6bbf8b4d7d32c7c6aec0576959c6accb63
tree5ec835097f6aefe18a5895482e9839d539c9a04b
parent3f267856243693676c04b4d6dfa1e22de62e407a
builtin/reset: compute checkout metadata for reset

Pass the commit, and if we have it, the ref to the filters when we
perform a checkout.  This should only be the case when we invoke git
reset --hard; the metadata will be unused otherwise.

Signed-off-by: brian m. carlson <bk2204@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/reset.c
t/t0021-conversion.sh