aboutsummaryrefslogtreecommitdiffstats
path: root/t/unit-tests
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 /t/unit-tests
parent7a1d2bd0a596f42a8a7a68d55577967bb454fec0 (diff)
downloadgit-274464683462d04363d2107822b0f9d2d5a27623.tar.gz
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 't/unit-tests')
-rw-r--r--t/unit-tests/u-oidmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/unit-tests/u-oidmap.c b/t/unit-tests/u-oidmap.c
index dc805b7e3c..b23af449f6 100644
--- a/t/unit-tests/u-oidmap.c
+++ b/t/unit-tests/u-oidmap.c
@@ -35,7 +35,7 @@ void test_oidmap__initialize(void)
void test_oidmap__cleanup(void)
{
- oidmap_free(&map, 1);
+ oidmap_clear(&map, 1);
}
void test_oidmap__replace(void)