]> git.99rst.org Git - git.git/commit
odb: compute object hash in `odb_write_object_ext()`
authorPatrick Steinhardt <redacted>
Fri, 17 Jul 2026 09:32:11 +0000 (11:32 +0200)
committerJunio C Hamano <redacted>
Sun, 19 Jul 2026 02:03:48 +0000 (19:03 -0700)
commit46a586a7199a78d2280ddb22368378693541fff0
tree1960ea50f778a51764dcd8ff0a589d18b302c45b
parentcb5192ea9ad42f6f7aa539496a5c59d76b8eaf0f
odb: compute object hash in `odb_write_object_ext()`

Same as in a preceding commit, compute the object hash in
`odb_write_object_ext()` so that we can unify this logic.

Besides unification, this change also allows us to lift the object
existence check out of the "loose" backend into the generic layer, which
will happen in the next commit.

Signed-off-by: Patrick Steinhardt <redacted>
Signed-off-by: Junio C Hamano <redacted>
object-file.c
object-file.h
odb.c
odb/source-files.c
odb/source-inmemory.c
odb/source-loose.c
odb/source-packed.c
odb/source.h
t/unit-tests/u-odb-inmemory.c
git clone https://git.99rst.org/PROJECT