]> git.ipfire.org Git - thirdparty/git.git/commit
midx: rename `get_midx_checksum()` to `midx_get_checksum_hash()`
authorTaylor Blau <me@ttaylorr.com>
Wed, 14 Jan 2026 19:54:21 +0000 (14:54 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Jan 2026 20:52:54 +0000 (12:52 -0800)
commit2fb1a068ecdd237c4336ff5afeeef704eaf7dee9
tree92e7b58ca4549c19cdfcf17625463fbf9dd837ba
parenta1aa8410e3f9badb70587d4e8838c0d9e7361634
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