]> Kevux Git Server - rit/commit
hash: require hash algorithm in `is_empty_{blob,tree}_oid()`
authorPatrick Steinhardt <ps@pks.im>
Fri, 14 Jun 2024 06:50:13 +0000 (08:50 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 14 Jun 2024 17:26:33 +0000 (10:26 -0700)
commit9c34eb93fba703e74f06d20f5b36a1a5e3dc6486
treebca28f26a6fdd7eebd872ca733ac7af9ed7dc86b
parent861e8c76f6668a8cbb764ec0ea3ba425dfb86b2a
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>
builtin/fast-import.c
cache-tree.c
diffcore-rename.c
hash-ll.h
hash.h
read-cache.c