]> git.ipfire.org Git - thirdparty/git.git/commit
odb/transaction: use pluggable `begin_transaction()`
authorJustin Tobler <jltobler@gmail.com>
Thu, 14 May 2026 18:37:35 +0000 (13:37 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 14 May 2026 19:44:39 +0000 (04:44 +0900)
commit10cdbc7423b2f5f9c666c48fe8a6e6e044595799
tree11a18368c59bbcae2f46e996bf4a356aba4201d6
parent5f6744d3eba6264ce78c8b507b1a1d3c0e540c37
odb/transaction: use pluggable `begin_transaction()`

Each ODB source is expected to provide an ODB transaction implementation
that should be used when starting a transaction. With d6fc6fe6f8
(odb/source: make `begin_transaction()` function pluggable, 2026-03-05),
the `struct odb_source` now provides a pluggable callback for beginning
transactions. Use the callback provided by the ODB source accordingly.

Signed-off-by: Justin Tobler <jltobler@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
odb/transaction.c