]> git.ipfire.org Git - thirdparty/git.git/commit - cache.h
sparse-checkout: add 'cone' mode
authorDerrick Stolee <dstolee@microsoft.com>
Thu, 21 Nov 2019 22:04:40 +0000 (22:04 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 22 Nov 2019 07:11:44 +0000 (16:11 +0900)
commit879321eb0bec25779386445d65242452825155be
treee7a7f3a7c1e755c8b91e45666c60fae7f818b36c
parente6152e35ff287ab58e2c17065f02cb1be9f4a0aa
sparse-checkout: add 'cone' mode

The sparse-checkout feature can have quadratic performance as
the number of patterns and number of entries in the index grow.
If there are 1,000 patterns and 1,000,000 entries, this time can
be very significant.

Create a new Boolean config option, core.sparseCheckoutCone, to
indicate that we expect the sparse-checkout file to contain a
more limited set of patterns. This is a separate config setting
from core.sparseCheckout to avoid breaking older clients by
introducing a tri-state option.

The config option does nothing right now, but will be expanded
upon in a later commit.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config/core.txt
Documentation/git-sparse-checkout.txt
cache.h
config.c
environment.c
t/t1091-sparse-checkout-builtin.sh