]> git.ipfire.org Git - thirdparty/git.git/commit
sha1_file: only expose empty object constants through git_hash_algo
authorbrian m. carlson <sandals@crustytoothpaste.net>
Wed, 2 May 2018 00:26:07 +0000 (00:26 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 May 2018 04:59:53 +0000 (13:59 +0900)
commite1ccd7e2b1cae8d7dab4686cddbd923fb6c46953
treefd5b999c75d3256200506b6e443106fb55fe5778
parentba2df7519afa4606fb97e1e83be41342b40bc451
sha1_file: only expose empty object constants through git_hash_algo

There really isn't any case in which we want to expose the constants for
empty trees and blobs outside of using the hash algorithm abstraction.
Make these constants static and stop exposing the defines in cache.h.
Remove the constants which are no longer in use.

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