Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-06-09 04:06:26 +0300
committerJunio C Hamano <gitster@pobox.com>2020-06-09 04:06:26 +0300
commitc3a02824cf938597bbbe7c2487db2c712adf5651 (patch)
tree18dbea784f7efd61feeb6be49fe2e11d90149bfa /bloom.c
parent20514004ddf1a3528de8933bc32f284e175e1012 (diff)
parentf32dde8c12d941065be848a9f66239df96bde216 (diff)
Merge branch 'ds/line-log-on-bloom'
"git log -L..." now takes advantage of the "which paths are touched by this commit?" info stored in the commit-graph system. * ds/line-log-on-bloom: line-log: integrate with changed-path Bloom filters line-log: try to use generation number-based topo-ordering line-log: more responsive, incremental 'git log -L' t4211-line-log: add tests for parent oids line-log: remove unused fields from 'struct line_log_data'
Diffstat (limited to 'bloom.c')
-rw-r--r--bloom.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/bloom.c b/bloom.c
index 9b86aa3f59..6c7611847a 100644
--- a/bloom.c
+++ b/bloom.c
@@ -138,6 +138,11 @@ void fill_bloom_key(const char *data,
key->hashes[i] = hash0 + i * hash1;
}
+void clear_bloom_key(struct bloom_key *key)
+{
+ FREE_AND_NULL(key->hashes);
+}
+
void add_key_to_filter(const struct bloom_key *key,
struct bloom_filter *filter,
const struct bloom_filter_settings *settings)