]> git.ipfire.org Git - thirdparty/git.git/commit
midx: drop redundant `struct repository` parameter
authorPatrick Steinhardt <ps@pks.im>
Mon, 11 Aug 2025 13:46:46 +0000 (15:46 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 11 Aug 2025 16:22:22 +0000 (09:22 -0700)
commit9ff212961506679c1e2c1541b17ab2bd8563ff15
treef2041bc4363c92b1c6001cd62104004393764d23
parent57363dfa0dce05aac735d5cfd626e6aac8cb706c
midx: drop redundant `struct repository` parameter

There are a couple of functions that take both a `struct repository` and
a `struct multi_pack_index`. This provides redundant information though
without much benefit given that the multi-pack index already has a
pointer to its owning repository.

Drop the `struct repository` parameter from such functions. While at it,
reorder the list of parameters of `fill_midx_entry()` so that the MIDX
comes first to better align with our coding guidelines.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/pack-objects.c
midx-write.c
midx.c
midx.h
pack-bitmap.c
packfile.c
t/helper/test-read-midx.c