]> git.ipfire.org Git - thirdparty/git.git/commit
midx: rename `get_midx_checksum()` to `midx_get_checksum_hash()`
authorTaylor Blau <me@ttaylorr.com>
Tue, 24 Feb 2026 18:59:39 +0000 (13:59 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 24 Feb 2026 19:16:32 +0000 (11:16 -0800)
commitde811c26bb97ac324b60883ae4f4db84a83be2f1
tree4961743a6fa3f05969e5ae43fd21699b6b138b87
parent00c0d84e6f0cdb91b0f261e12ed058ad3baa49bf
midx: rename `get_midx_checksum()` to `midx_get_checksum_hash()`

Since 541204aabea (Documentation: document naming schema for structs and
their functions, 2024-07-30), we have adopted a naming convention for
functions that would prefer a name like, say, `midx_get_checksum()` over
`get_midx_checksum()`.

Adopt this convention throughout the midx.h API. Since this function
returns a raw (that is, non-hex encoded) hash, let's suffix the function
with "_hash()" to make this clear. As a side effect, this prepares us
for the subsequent change which will introduce a "_hex()" variant that
encodes the checksum itself.

Suggested-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
midx-write.c
midx.c
midx.h
pack-bitmap.c
pack-revindex.c
t/helper/test-read-midx.c