Re: [PATCH 2/5] refs: make `is_pseudoref_syntax()` stricter
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 23, 2024, 17:46 UTC
- Message-ID
- <xmqqsf2ondrx.fsf@gitster.g>
- In-Reply-To
- <CAOLa=ZQOcqGBJOSehok4BYGUE8RKtnE9eiJYogeT8E6NWZ25xw@mail.gmail.com>
Karthik Nayak <karthik.188@gmail.com> writes:
Show 6 quoted lines
> Given this, I think for the next version, I'll do the following changes: > 1. keep `is_pseudoref_syntax()` as is. > 2. introduce `is_pseudoref()` which calls `is_pseudoref_syntax()` and > also checks the content of the file. > 3. replace use of `is_pseudoref_syntax()` with `is_pseudoref()` in this > patch series.
The content check in 2. was something that was mentioned in an earlier discussion, lack of which I completely missed during the review of this current round. Sounds very good to add that.
Thanks.