Re: [RFC PATCH 2/4] fsck: support refs pointing to lazy objects

2017-07-28 Thread Ben Peart
On 7/27/2017 7:50 PM, Jonathan Tan wrote: On Thu, 27 Jul 2017 11:59:47 -0700 Junio C Hamano wrote: @@ -438,6 +438,14 @@ static int fsck_handle_ref(const char *refname, const struct object_id *oid, obj = parse_object(oid); if (!obj) { + if (repository_format_lazy

Re: [RFC PATCH 2/4] fsck: support refs pointing to lazy objects

2017-07-27 Thread Jonathan Tan
On Thu, 27 Jul 2017 11:59:47 -0700 Junio C Hamano wrote: > > @@ -438,6 +438,14 @@ static int fsck_handle_ref(const char *refname, const > > struct object_id *oid, > > > > obj = parse_object(oid); > > if (!obj) { > > + if (repository_format_lazy_object) { > > +

Re: [RFC PATCH 2/4] fsck: support refs pointing to lazy objects

2017-07-27 Thread Junio C Hamano
Jonathan Tan writes: > Teach fsck to not treat refs with missing targets as an error when > extensions.lazyobject is set. > > For the purposes of warning about no default refs, such refs are still > treated as legitimate refs. > > Signed-off-by: Jonathan Tan > --- > builtin/fsck.c | 8

[RFC PATCH 2/4] fsck: support refs pointing to lazy objects

2017-07-26 Thread Jonathan Tan
Teach fsck to not treat refs with missing targets as an error when extensions.lazyobject is set. For the purposes of warning about no default refs, such refs are still treated as legitimate refs. Signed-off-by: Jonathan Tan --- builtin/fsck.c | 8 t/t0410-lazy-object.sh | 20 +