diff options
| author | Justin Tobler <jltobler@gmail.com> | 2026-08-20 18:49:35 -0500 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-08-20 20:28:01 -0700 |
| commit | c59466d4cfcc4b0cf364bebc32ede9da53abf9a3 (patch) | |
| tree | 42f322be7f9bdfd6e8e27a58a3e074c7fbd2824b /t/t4013/diff.diff_initial..side | |
| parent | 727b99cdb11395ad6932bdb3fb4923a98c23c803 (diff) | |
builtin/receive-pack: read unpack limit config lazily
In git-receive-pack(1), the `receive.unpackLimit` and
`transfer.unpackLimit` configuration decides whether an incoming
packfile should be exploded into loose objects or kept as a packfile
on-disk. In a subsequent commit, the logic to write the incoming
packfile is made ODB backend agnostic and moved behind a pluggable ODB
transaction interface. Consequently, whether to explode a packfile is a
detail of how a particular backend stores objects and should not be a
part of the generic interface itself.
In preparation for this, instead resolve the unpack limit lazily inside
`unpack()` by reading the configuration directly. The now-unused unpack
limit globals are dropped 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
