mirror of
https://github.com/git/git.git
synced 2025-09-10 22:44:50 +02:00
cocci: apply rules to rewrite callers of "refs" interfaces
Apply the rules that rewrite callers of "refs" interfaces to explicitly pass `struct ref_store`. The resulting patch has been applied with the `--whitespace=fix` option. 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
b198ee0b3d
commit
2e5c4758b7
@@ -706,11 +706,14 @@ static void midx_snapshot_refs(struct tempfile *f)
|
||||
|
||||
data.preferred = 1;
|
||||
for_each_string_list_item(item, preferred)
|
||||
for_each_ref_in(item->string, midx_snapshot_ref_one, &data);
|
||||
refs_for_each_ref_in(get_main_ref_store(the_repository),
|
||||
item->string,
|
||||
midx_snapshot_ref_one, &data);
|
||||
data.preferred = 0;
|
||||
}
|
||||
|
||||
for_each_ref(midx_snapshot_ref_one, &data);
|
||||
refs_for_each_ref(get_main_ref_store(the_repository),
|
||||
midx_snapshot_ref_one, &data);
|
||||
|
||||
if (close_tempfile_gently(f)) {
|
||||
int save_errno = errno;
|
||||
|
||||
Reference in New Issue
Block a user