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
3
commit.c
3
commit.c
@ -1070,7 +1070,8 @@ struct commit *get_fork_point(const char *refname, struct commit *commit)
|
||||
|
||||
memset(&revs, 0, sizeof(revs));
|
||||
revs.initial = 1;
|
||||
for_each_reflog_ent(full_refname, collect_one_reflog_ent, &revs);
|
||||
refs_for_each_reflog_ent(get_main_ref_store(the_repository),
|
||||
full_refname, collect_one_reflog_ent, &revs);
|
||||
|
||||
if (!revs.nr)
|
||||
add_one_commit(&oid, &revs);
|
||||
|
Reference in New Issue
Block a user