diff options
| author | Justin Tobler <jltobler@gmail.com> | 2026-08-20 18:49:36 -0500 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-08-20 20:28:01 -0700 |
| commit | 255f3a7a5318b7c2dc97c15845af3e4ec5f51d9a (patch) | |
| tree | c0a2cfb063b7a079fa1dbc3b664e58753355315d /t/t4013/diff.diff_initial..side | |
| parent | c59466d4cfcc4b0cf364bebc32ede9da53abf9a3 (diff) | |
builtin/receive-pack: lift global state out of unpack()
In git-receive-pack(1), writing the packfile to the transaction is
handled via `unpack()` which relies on global variables to decide how to
invoke the underlying git-index-pack(1) or git-unpack-objects(1) child
processes. In a subsequent commit, the `unpack()` logic is moved behind
a generic ODB transaction interface to handle writing packfiles and thus
can no longer rely on these globals.
Lift the global state out of `unpack()` by instead storing this state in
a `struct unpack_opts` that gets passed to the function explicitly.
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
