diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-06-09 03:06:26 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-06-09 03:06:26 +0200 |
commit | c3a02824cf938597bbbe7c2487db2c712adf5651 (patch) | |
tree | 18dbea784f7efd61feeb6be49fe2e11d90149bfa /bloom.c | |
parent | Start the post 2.27 cycle (diff) | |
parent | line-log: integrate with changed-path Bloom filters (diff) | |
download | git-c3a02824cf938597bbbe7c2487db2c712adf5651.tar.xz git-c3a02824cf938597bbbe7c2487db2c712adf5651.zip |
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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) |