Re: [PATCH] sparse-index: pass string length to index_file_exists()
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 2, 2024, 19:30 UTC
- Message-ID
- <xmqq1q9usly8.fsf@gitster.g>
- In-Reply-To
- <2bae709a-18da-6ab8-2b76-032ddc045641@jeffhostetler.com>
Jeff Hostetler <git@jeffhostetler.com> writes:
Show 8 quoted lines
> I don't remember if this bug caused visible problems or not. It felt > like it caused a few extra rounds of mutually-recursive calls between > `index_file_exists()` and `expand_to_path()`, but I can't say that > for certain (and I was focused on a different problem at the time). > > I do have some test code in `t/helper/lazy-init-name-hash.c` that > I suppose we could extend to beat on it, but I'm not sure it is > worth it in this case.
Yeah, if we had a reproduction already handy that would have been a different story, but I agree that it is not worth it.
Thanks for a fix. Queued.