]> git.ipfire.org Git - thirdparty/git.git/commit
hash: require hash algorithm in `oidread()` and `oidclr()`
authorPatrick Steinhardt <ps@pks.im>
Fri, 14 Jun 2024 06:49:54 +0000 (08:49 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 14 Jun 2024 17:26:32 +0000 (10:26 -0700)
commit9da95bda74cf10e1475384a71fd20914c3b99784
treefb145c3883d83c86ecf5bf7fa188937afe77b1e0
parentf4836570a7adbd8c70ad7a8edf6ae5a977647c06
hash: require hash algorithm in `oidread()` and `oidclr()`

Both `oidread()` and `oidclr()` 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>
48 files changed:
apply.c
blame.c
builtin/am.c
builtin/fast-export.c
builtin/fast-import.c
builtin/fetch-pack.c
builtin/index-pack.c
builtin/log.c
builtin/merge.c
builtin/notes.c
builtin/pack-objects.c
builtin/pack-redundant.c
builtin/patch-id.c
builtin/pull.c
builtin/receive-pack.c
builtin/replace.c
builtin/rm.c
builtin/tag.c
builtin/unpack-objects.c
builtin/update-ref.c
cache-tree.c
commit-graph.c
diff-lib.c
diff.c
dir.c
hash-ll.h
hash.h
http-push.c
http-walker.c
match-trees.c
midx.c
notes-merge.c
notes.c
object-file-convert.c
object-file.c
packfile.c
read-cache.c
refs.c
refs/files-backend.c
refs/packed-backend.c
refs/reftable-backend.c
remote.c
resolve-undo.c
sequencer.c
split-index.c
submodule-config.c
t/helper/test-submodule-config.c
tree-walk.c