]> git.ipfire.org Git - thirdparty/git.git/commit
midx: mark `get_midx_checksum()` arguments as const
authorTaylor Blau <me@ttaylorr.com>
Wed, 14 Jan 2026 19:54:18 +0000 (14:54 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Jan 2026 20:52:54 +0000 (12:52 -0800)
commita1aa8410e3f9badb70587d4e8838c0d9e7361634
tree7e6766b44b2a0ccd458fde6fc63b1a54c1458561
parent9baec99e3eef5bbf5978ab1caa30d0770ef3b6e0
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