aboutsummaryrefslogtreecommitdiffstats
path: root/list-objects-filter.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2025-05-12 14:50:28 -0400
committerJunio C Hamano <gitster@pobox.com>2025-05-12 13:06:26 -0700
commit274464683462d04363d2107822b0f9d2d5a27623 (patch)
treefff31b68ef17cd2468be4efb91402daf1f842488 /list-objects-filter.c
parentMerge branch 'master' of https://github.com/j6t/gitk (diff)
downloadgit-274464683462d04363d2107822b0f9d2d5a27623.tar.gz
git-274464683462d04363d2107822b0f9d2d5a27623.zip
oidmap: rename oidmap_free() to oidmap_clear()
This function does not free the oidmap struct itself; it just drops all items from the map (using hashmap_clear_() internally). It should be called oidmap_clear(), per CodingGuidelines. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'list-objects-filter.c')
-rw-r--r--list-objects-filter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/list-objects-filter.c b/list-objects-filter.c
index 7765761b3c..78b397bc19 100644
--- a/list-objects-filter.c
+++ b/list-objects-filter.c
@@ -244,7 +244,7 @@ static void filter_trees_free(void *filter_data) {
struct filter_trees_depth_data *d = filter_data;
if (!d)
return;
- oidmap_free(&d->seen_at_depth, 1);
+ oidmap_clear(&d->seen_at_depth, 1);
free(d);
}