summaryrefslogtreecommitdiff
path: root/t/t4013/diff.diff_initial..side
diff options
context:
space:
mode:
authorJustin Tobler <jltobler@gmail.com>2026-05-14 13:37:37 -0500
committerJunio C Hamano <gitster@pobox.com>2026-05-15 04:44:40 +0900
commit8a1f5ecf287bf73c2dee102d726709f444b77c44 (patch)
tree50a739bc5885a8ec3db3d807ec4d4937f7b477cf /t/t4013/diff.diff_initial..side
parent970f63519e494b590c807972af6c40477e14bc61 (diff)
object-file: remove flags from transaction packfile writes
The `index_blob_packfile_transaction()` function handles streaming a blob from an fd to compute its object ID and conditionally writes the object directly to a packfile if the INDEX_WRITE_OBJECT flag is set. A subsequent commit will make these packfile object writes part of the transaction interface. Consequently, having the object write be conditional on this flag is a bit awkward. In preparation for this change, introduce a dedicated `hash_blob_stream()` helper that only computes the OID from a `struct odb_write_stream`. This is invoked by `index_fd()` instead when the INDEX_WRITE_OBJECT is not set. The object write performed via `index_blob_packfile_transaction()` is made unconditional accordingly. 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