commit-graph.c: store maximum changed paths
authorTaylor Blau <me@ttaylorr.com>
Thu, 17 Sep 2020 13:34:42 +0000 (09:34 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 17 Sep 2020 16:29:22 +0000 (09:29 -0700)
commit97ffa4fab504a9c5e3b63ff886686c7f6ccd4e70
treeef097701115ba277cbc079f675d61f6cee7fe679
parentb66d84756f0f3704303ddc202707ac00037ace48
commit-graph.c: store maximum changed paths

For now, we assume that there is a fixed constant describing the
maximum number of changed paths we are willing to store in a Bloom
filter.

Prepare for that to (at least partially) not be the case by making it a
member of the 'struct bloom_filter_settings'. This will be helpful in
the subsequent patches by reducing the size of test cases that exercise
storing too many changed paths, as well as preparing for an eventual
future in which this value might change.

This patch alone does not cause newly generated Bloom filters to use
a custom upper-bound on the maximum number of changed paths a single
Bloom filter can hold, that will occur in a later patch.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
bloom.h
commit-graph.c
t/t4216-log-bloom.sh