]> git.ipfire.org Git - thirdparty/git.git/commit
odb: get rid of `the_repository` in `assert_oid_type()`
authorPatrick Steinhardt <ps@pks.im>
Tue, 1 Jul 2025 12:22:18 +0000 (14:22 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 1 Jul 2025 21:46:35 +0000 (14:46 -0700)
commit961038856bcd319289a226e29503358123c0a1ba
tree122cadd3dcdc225f4ab3b57da92cce8c51b25cd3
parentbd52ea343d2af91574fedcf765250f44f3d624d4
odb: get rid of `the_repository` in `assert_oid_type()`

Get rid of our dependency on `the_repository` in `assert_oid_type()` by
passing in the object database as a parameter and adjusting all callers.

Rename the function to `odb_assert_oid_type()`.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/commit-tree.c
commit.c
odb.c
odb.h