]> git.ipfire.org Git - thirdparty/git.git/commit
midx: mark `get_midx_checksum()` arguments as const
authorTaylor Blau <me@ttaylorr.com>
Sat, 6 Dec 2025 20:31:01 +0000 (15:31 -0500)
committerJunio C Hamano <gitster@pobox.com>
Sat, 6 Dec 2025 22:38:04 +0000 (07:38 +0900)
commit3eea3c80238c8cd8911fc5a85d16d391f70d07fd
tree6bf1ab5e3702a135d481ad0a3199e898692e1a17
parentf0ef5b6d9bcc258e4cbef93839d1b7465d5212b9
midx: mark `get_midx_checksum()` arguments as const

To make clear that the fucntion `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