]> git.ipfire.org Git - thirdparty/git.git/commit
oidmap: rename oidmap_free() to oidmap_clear()
authorJeff King <peff@peff.net>
Mon, 12 May 2025 18:50:28 +0000 (14:50 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 May 2025 20:06:26 +0000 (13:06 -0700)
commit274464683462d04363d2107822b0f9d2d5a27623
treefff31b68ef17cd2468be4efb91402daf1f842488
parent7a1d2bd0a596f42a8a7a68d55577967bb454fec0
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>
builtin/rev-list.c
list-objects-filter.c
object-store.c
oidmap.c
oidmap.h
sequencer.c
t/unit-tests/u-oidmap.c