Files
git-mirror/hash.h
Patrick Steinhardt 9c34eb93fb hash: require hash algorithm in is_empty_{blob,tree}_oid()
Both functions `is_empty_{blob,tree}_oid()` use `the_repository` to
derive the hash function that shall be used. Require callers to pass in
the hash algorithm to get rid of this implicit dependency.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2024-06-14 10:26:33 -07:00

10 lines
133 B
C

#ifndef HASH_H
#define HASH_H
#include "hash-ll.h"
#include "repository.h"
#define the_hash_algo the_repository->hash_algo
#endif