]> git.ipfire.org Git - thirdparty/git.git/commit - unpack-trees.c
builtin/checkout: compute checkout metadata for checkouts
authorbrian m. carlson <bk2204@github.com>
Mon, 16 Mar 2020 18:05:04 +0000 (18:05 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 16 Mar 2020 18:37:02 +0000 (11:37 -0700)
commit13e7ed6a3a0ecd5d50b7bba2d86ce9d88494fa9b
treed2c5b1215ca578250aa88dbbeee45310ceb2e3d0
parentc397aac02f9f97976f675115aa5df6ca01e26d59
builtin/checkout: compute checkout metadata for checkouts

Provide commit metadata for checkout code paths that use unpack_trees
and friends.  When we're checking out a commit, use the commit
information, but don't provide commit information if we're checking out
from the index, since there need not be any particular commit associated
with the index, and even if there is one, we can't know what it is.

Signed-off-by: brian m. carlson <bk2204@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/checkout.c
merge.c
t/t0021-conversion.sh
t/t0021/rot13-filter.pl
unpack-trees.c
unpack-trees.h