aboutsummaryrefslogtreecommitdiff
path: root/bloom.h
diff options
context:
space:
mode:
authorLidong Yan <yldhome2d2@gmail.com>2025-07-12 17:35:14 +0800
committerJunio C Hamano <gitster@pobox.com>2025-07-14 10:03:02 -0700
commitb187353ed2b92745a903d321eaafac342a5df8d4 (patch)
tree90ccddbde49af9c67eb1c2c9e0d79cac92ffcfe4 /bloom.h
parent4ca70179020b6a33bb5334302e7c79faf7eeaf52 (diff)
downloadgit-b187353ed2b92745a903d321eaafac342a5df8d4.tar.xz
bloom: rename function operates on bloom_key
git code style requires that functions operating on a struct S should be named in the form S_verb. However, the functions operating on struct bloom_key do not follow this convention. Therefore, fill_bloom_key() and clear_bloom_key() are renamed to bloom_key_fill() and bloom_key_clear(), respectively. Signed-off-by: Lidong Yan <502024330056@smail.nju.edu.cn> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'bloom.h')
-rw-r--r--bloom.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/bloom.h b/bloom.h
index a9ded1822f..603bc1f90f 100644
--- a/bloom.h
+++ b/bloom.h
@@ -78,11 +78,9 @@ int load_bloom_filter_from_graph(struct commit_graph *g,
struct bloom_filter *filter,
uint32_t graph_pos);
-void fill_bloom_key(const char *data,
- size_t len,
- struct bloom_key *key,
+void bloom_key_fill(struct bloom_key *key, const char *data, size_t len,
const struct bloom_filter_settings *settings);
-void clear_bloom_key(struct bloom_key *key);
+void bloom_key_clear(struct bloom_key *key);
void add_key_to_filter(const struct bloom_key *key,
struct bloom_filter *filter,