]> git.ipfire.org Git - thirdparty/git.git/commit
sha1_file: convert cached object code to struct object_id
authorbrian m. carlson <sandals@crustytoothpaste.net>
Wed, 2 May 2018 00:26:03 +0000 (00:26 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 May 2018 04:59:52 +0000 (13:59 +0900)
commit62ba93eaa9dfac60c17e362220b3f1dd183bf5ac
treeb2dd9aa4c7dcdeb3fdd896ecee2cf6f3b7bab05d
parentd8448522d868fc549c69a026a0353c17eb25b897
sha1_file: convert cached object code to struct object_id

Convert the code that looks up cached objects to use struct object_id.
Adjust the lookup for empty trees to use the_hash_algo.  Note that we
don't need to be concerned about the hard-coded object ID in the
empty_tree object since we never use it.

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