Re: [PATCH 0/6] Yet another approach to handling empty snapshots
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 24, 2018, 20:54 UTC
- Message-ID
- <xmqqfu6vc70l.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <cover.1516791909.git.mhagger@alum.mit.edu>
Michael Haggerty <mhagger@alum.mit.edu> writes:
Show 11 quoted lines
> This patch series fixes the handling of empty packed-refs snapshots > (i.e., those with `snapshot->buf` and friends equal to `NULL`), partly > by changing `snapshot` to store a pointer to the start of the > post-header `packed-refs` content instead of `header_len`. It makes a > couple of other improvements as well. > > I'm not sure whether I like this approach better than the alternative > of always setting `snapshot->buf` to a non-NULL value, by allocating a > length-1 bit of RAM if necessary. The latter is less intrusive, though > even if that approach is taken, I think patches 01, 02, and 04 from > this patch series would be worthwhile improvements.
I do not have a strong preference either way, but somehow feel that this is more "coherent" ;-) That is certainly subjective, though.
Thanks.