mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01: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
@@ -661,7 +661,9 @@ int fmt_merge_msg(struct strbuf *in, struct strbuf *out,
|
||||
|
||||
/* learn the commit that we merge into and the current branch name */
|
||||
current_branch = current_branch_to_free =
|
||||
resolve_refdup("HEAD", RESOLVE_REF_READING, &head_oid, NULL);
|
||||
refs_resolve_refdup(get_main_ref_store(the_repository),
|
||||
"HEAD", RESOLVE_REF_READING, &head_oid,
|
||||
NULL);
|
||||
if (!current_branch)
|
||||
die("No current branch");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user