summaryrefslogtreecommitdiff
path: root/t/t7500/add-comments
diff options
context:
space:
mode:
authorLibravatar Christian Couder <christian.couder@gmail.com>2017-02-27 19:00:08 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-03-01 13:24:22 -0800
commite6a1dd77e1dbfb77cadd27274f211488a348687a (patch)
treef87008f14ef94cfd6f65fdcd5b6e73acb63396ce /t/t7500/add-comments
parentconfig: add git_config_get_max_percent_split_change() (diff)
downloadtgif-e6a1dd77e1dbfb77cadd27274f211488a348687a.tar.xz
read-cache: regenerate shared index if necessary
When writing a new split-index and there is a big number of cache entries in the split-index compared to the shared index, it is a good idea to regenerate the shared index. By default when the ratio reaches 20%, we will push back all the entries from the split-index into a new shared index file instead of just creating a new split-index file. The threshold can be configured using the "splitIndex.maxPercentChange" config variable. We need to adjust the existing tests in t1700 by setting "splitIndex.maxPercentChange" to 100 at the beginning of t1700, as the existing tests are assuming that the shared index is regenerated only when `git update-index --split-index` is used. Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7500/add-comments')
0 files changed, 0 insertions, 0 deletions