]> git.ipfire.org Git - thirdparty/git.git/commit
odb: split `struct odb_transaction` into separate header
authorJustin Tobler <jltobler@gmail.com>
Thu, 14 May 2026 18:37:34 +0000 (13:37 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 14 May 2026 19:44:39 +0000 (04:44 +0900)
commit5f6744d3eba6264ce78c8b507b1a1d3c0e540c37
treee9c3fedcffcc0f0ac171a95e91e4a612558fd6cc
parent270e10ad6dda3379ea0da7efd11e4fbf2cd7a325
odb: split `struct odb_transaction` into separate header

The current ODB transaction interface is colocated with other ODB
interfaces in "odb.{c,h}". Subsequent commits will expand `struct
odb_transaction` to support write operations on the transaction
directly. To keep things organized and prevent "odb.{c,h}" from becoming
more unwieldy, split out `struct odb_transaction` into a separate
header.

Signed-off-by: Justin Tobler <jltobler@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
12 files changed:
Makefile
builtin/add.c
builtin/unpack-objects.c
builtin/update-index.c
cache-tree.c
meson.build
object-file.c
odb.c
odb.h
odb/transaction.c [new file with mode: 0644]
odb/transaction.h [new file with mode: 0644]
read-cache.c