]> Kevux Git Server - rit/commit
midx: mark `get_midx_checksum()` arguments as const
authorTaylor Blau <me@ttaylorr.com>
Tue, 24 Feb 2026 18:59:34 +0000 (13:59 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 24 Feb 2026 19:16:31 +0000 (11:16 -0800)
commit00c0d84e6f0cdb91b0f261e12ed058ad3baa49bf
treeab9945dbfbdf032ae1928d5f2239eb4fcc0bfb19
parent7c02d39fc2ed2702223c7674f73150d9a7e61ba4
midx: mark `get_midx_checksum()` arguments as const

To make clear that the function `get_midx_checksum()` does not do
anything to modify its argument, mark the MIDX pointer as const.

The following commit will rename this function altogether to make clear
that it returns the raw bytes of the checksum, not a hex-encoded copy of
it.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
midx.c
midx.h