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>
This commit is contained in:
committed by
Junio C Hamano
parent
57363dfa0d
commit
9ff2129615
@@ -1733,7 +1733,7 @@ static int want_object_in_pack_mtime(const struct object_id *oid,
|
||||
struct multi_pack_index *m = get_multi_pack_index(source);
|
||||
struct pack_entry e;
|
||||
|
||||
if (m && fill_midx_entry(the_repository, oid, &e, m)) {
|
||||
if (m && fill_midx_entry(m, oid, &e)) {
|
||||
want = want_object_in_pack_one(e.p, oid, exclude, found_pack, found_offset, found_mtime);
|
||||
if (want != -1)
|
||||
return want;
|
||||
|
||||
Reference in New Issue
Block a user