]> git.ipfire.org Git - thirdparty/git.git/commit
pack-objects: allow setting `pack.allowPackReuse` to "single"
authorTaylor Blau <me@ttaylorr.com>
Thu, 14 Dec 2023 22:24:42 +0000 (17:24 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 14 Dec 2023 22:38:09 +0000 (14:38 -0800)
commit941074134cefe49fd7dc894665f1eb9804e06cf8
treea12398e44a7957e1c98ca850dc6a5a7a6c777bd6
parent3bea0c0611f1539b552c8255cffbe27932d0582f
pack-objects: allow setting `pack.allowPackReuse` to "single"

In e704fc7978 (pack-objects: introduce pack.allowPackReuse, 2019-12-18),
the `pack.allowPackReuse` configuration option was introduced, allowing
users to disable the pack reuse mechanism.

To prepare for debugging multi-pack reuse, allow setting configuration
to "single" in addition to the usual bool-or-int values.

"single" implies the same behavior as "true", "1", "yes", and so on. But
it will complement a new "multi" value (to be introduced in a future
commit). When set to "single", we will only perform pack reuse on a
single pack, regardless of whether or not there are multiple MIDX'd
packs.

This requires no code changes (yet), since we only support single pack
reuse.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config/pack.txt
builtin/pack-objects.c