reftable/system: stop depending on "hash.h"
We include "hash.h" in "reftable/system.h" such that we can use hash format IDs as well as the raw size of SHA1 and SHA256. As we are in the process of converting the reftable library to become standalone we of course cannot rely on those constants anymore. Introduce a new `enum reftable_hash` to replace internal uses of the hash format IDs and new constants that replace internal uses of the hash size. Adapt the reftable backend to set up the correct hash function. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
88e297275b
commit
c2f08236ed
@ -14,8 +14,5 @@ https://developers.google.com/open-source/licenses/bsd
|
||||
#include "git-compat-util.h"
|
||||
#include "lockfile.h"
|
||||
#include "tempfile.h"
|
||||
#include "hash.h" /* hash ID, sizes.*/
|
||||
|
||||
int hash_size(uint32_t id);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user