]> git.ipfire.org Git - thirdparty/git.git/commit
odb/transaction: add transaction env interface
authorJustin Tobler <jltobler@gmail.com>
Fri, 10 Jul 2026 16:37:19 +0000 (11:37 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 10 Jul 2026 20:21:53 +0000 (13:21 -0700)
commit28fbc0676936e2c024f3973066bec6b2bbfed610
treecf89e7a6c872991a789edda1b369d750f7018912
parentdbb3c87ee40d55a1224275de118f0ec19b60ca32
odb/transaction: add transaction env interface

The ODB transaction backend is responsible for creating/managing its own
staging area for writing objects. Other child processes spawned by Git
may need access to uncommitted objects or write new objects in the
staging area though.

Introduce `odb_transaction_env()` which is expected to provide the set
of environment variables needed by a child process to access the
transaction's staging area.

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