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
@ -192,6 +192,7 @@ void default_negotiator_init(struct fetch_negotiator *negotiator)
|
||||
ns->rev_list.compare = compare_commits_by_commit_date;
|
||||
|
||||
if (marked)
|
||||
for_each_ref(clear_marks, NULL);
|
||||
refs_for_each_ref(get_main_ref_store(the_repository),
|
||||
clear_marks, NULL);
|
||||
marked = 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user