diff options
| author | Justin Tobler <jltobler@gmail.com> | 2026-07-10 11:37:20 -0500 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-07-10 13:21:53 -0700 |
| commit | 48d730a16a6f02ca952f653cf70d8c0471137112 (patch) | |
| tree | fb8db5989f9b958cb7ad4eb4e91a672863f142c2 /t/t4013/diff.diff_initial..side | |
| parent | 28fbc0676936e2c024f3973066bec6b2bbfed610 (diff) | |
odb/transaction: introduce ODB transaction flags
The temporary directory used by git-receive-pack(1) to write objects is
managed slightly differently than how it is done via ODB transactions:
- The temporary directory is eagerly created upfront, instead of
waiting for the first object write.
- The prefix name of the temporary directory is "incoming" instead of
"bulk-fsync".
In a subsequent commit, git-receive-pack(1) will use ODB transactions
instead of `tmp_objdir` directly. To provide a means to configure the
same transaction behavior, introduce `enum odb_transaction_flags` and
the ODB_TRANSACTION_RECEIVE flag intended as a signal for ODB
transactions using the "files" backend to be set up for
git-receive-pack(1). Transaction call sites are updated accordingly to
provide the required flag parameter.
Signed-off-by: Justin Tobler <jltobler@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.diff_initial..side')
0 files changed, 0 insertions, 0 deletions
