]> git.ipfire.org Git - thirdparty/git.git/commit - cache-tree.c
cache-tree: use is_empty_tree_oid
authorbrian m. carlson <sandals@crustytoothpaste.net>
Wed, 2 May 2018 00:26:04 +0000 (00:26 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 May 2018 04:59:52 +0000 (13:59 +0900)
commita0554934364f3c8921abb8f7526301e81c230dac
treed38150351e7016c712760f60cfcdc1acd03ab8ed
parent62ba93eaa9dfac60c17e362220b3f1dd183bf5ac
cache-tree: use is_empty_tree_oid

When comparing an object ID against that of the empty tree, use the
is_empty_tree_oid function to ensure that we abstract over the hash
algorithm properly.  In addition, this is more readable than a plain
oidcmp.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache-tree.c