Re: [PATCH 4/6] submodule: return target of submodule symref
- From
Glen Choo <chooglen@google.com>
- Date
- Sep 1, 2022, 20:46 UTC
- Message-ID
- <kl6l35daddrq.fsf@chooglen-macbookpro.roam.corp.google.com>
- In-Reply-To
- <20220901200135.515907-1-jonathantanmy@google.com>
Jonathan Tan <jonathantanmy@google.com> writes:
Show 13 quoted lines
> "Glen Choo via GitGitGadget" <gitgitgadget@gmail.com> writes: >> diff --git a/refs.c b/refs.c >> index 90bcb271687..d72015c95e9 100644 >> --- a/refs.c >> +++ b/refs.c >> @@ -1784,19 +1784,21 @@ const char *resolve_ref_unsafe(const char *refname, int resolve_flags, >> } >> >> int resolve_gitlink_ref(const char *submodule, const char *refname, >> - struct object_id *oid) >> + struct object_id *oid, const char **referent_out) > > s/referent/target/ throughout this patch, I think.
I prefer the word "target", but this is a break from existing conventions, e.g.
int refs_read_symbolic_ref(struct ref_store *ref_store, const char *refname,
struct strbuf *referent);We can do this change, but I think we should also change this everywhere if we do.