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
@ -1845,7 +1845,8 @@ int write_commit_graph_reachable(struct object_directory *odb,
|
||||
data.progress = start_delayed_progress(
|
||||
_("Collecting referenced commits"), 0);
|
||||
|
||||
for_each_ref(add_ref_to_set, &data);
|
||||
refs_for_each_ref(get_main_ref_store(the_repository), add_ref_to_set,
|
||||
&data);
|
||||
|
||||
stop_progress(&data.progress);
|
||||
|
||||
|
Reference in New Issue
Block a user