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
@@ -682,7 +682,7 @@ static int do_reupdate(const char **paths,
|
||||
PATHSPEC_PREFER_CWD,
|
||||
prefix, paths);
|
||||
|
||||
if (read_ref("HEAD", &head_oid))
|
||||
if (refs_read_ref(get_main_ref_store(the_repository), "HEAD", &head_oid))
|
||||
/* If there is no HEAD, that means it is an initial
|
||||
* commit. Update everything in the index.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user