Re: [PATCH 06/16] refs: refactor `resolve_gitlink_ref()` to accept a repository

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Patrick Steinhardt <ps@xxxxxx> writes:

> diff --git a/refs.c b/refs.c
> index 86008ce7b4..40e241216e 100644
> --- a/refs.c
> +++ b/refs.c
> @@ -1943,13 +1943,14 @@ int ref_store_create(struct ref_store *refs, int flags, struct strbuf *err)
>  	return refs->be->create(refs, flags, err);
>  }
>  
> -int resolve_gitlink_ref(const char *submodule, const char *refname,
> -			struct object_id *oid)
> +int repo_resolve_gitlink_ref(struct repository *r,
> +			     const char *submodule, const char *refname,
> +			     struct object_id *oid)
>  {
>  	struct ref_store *refs;
>  	int flags;
>  
> -	refs = repo_get_submodule_ref_store(the_repository, submodule);
> +	refs = repo_get_submodule_ref_store(r, submodule);
>  	if (!refs)
>  		return -1;

OK.  Looking good.




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux