Re: [PATCH v2 10/17] refs/files: introduce function to perform normal ref checks
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 12, 2026, 14:37 UTC
- Message-ID
- <xmqq8qe2oq26.fsf@gitster.g>
- In-Reply-To
- <xmqqldi2oqve.fsf@gitster.g>
Junio C Hamano <gitster@pobox.com> writes:
Show 17 quoted lines
> Patrick Steinhardt <ps@pks.im> writes: > >> On Mon, Jan 12, 2026 at 06:42:04AM -0500, Karthik Nayak wrote: >>> Patrick Steinhardt <ps@pks.im> writes: >>> >>> > In a subsequent commit we'll introduce new generic checks for direct >>> > refs. These checks will be independent of the actual backend. >>> >>> I don't think we've used the terminology 'direct refs' before. Took >>> me a second to understand. We generally use 'regular refs', but that >>> includes symrefs, so I think this does make sense. >> >> Yeah, I didn't really know what to call these other than "direct refs". >> We could instead say "non-symbolic refs", but that also feels kind of >> awkward. So I guess this is good enough...? > > The latter is understandable, if awkward. The former is not.
Well, I failed to elaborate why I think "the former is not".
The former would have been, if we were calling HEAD as "indirect ref", instead of "symbolic ref". But we use the latter, hence "direct ref" is much less understandable than "non-symbolic ref".
Thanks.