In the preceding commits we have migrated all callers to derive their
information of how a specific object is stored to use the new object
info source instead, and hence the field is now unused. Drop it.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
return -1;
}
}
- input_oi->whence = new_oi.whence;
if (input_oi->sourcep)
*input_oi->sourcep = *new_oi.sourcep;
return ret;
* or multiple times in the same source.
*/
struct object_info_source *sourcep;
-
- /* Response */
- enum {
- OI_CACHED,
- OI_LOOSE,
- OI_PACKED,
- } whence;
};
/*
*oi->mtimep = 0;
if (oi->sourcep)
oi->sourcep->source = &source->base;
-
- oi->whence = OI_CACHED;
}
static int odb_source_inmemory_read_object_info(struct odb_source *source,
oidclr(oi->delta_base_oid, loose->base.odb->repo->hash_algo);
if (oi->sourcep && !ret)
oi->sourcep->source = &loose->base;
- if (!ret)
- oi->whence = OI_LOOSE;
}
return ret;
oidclr(oi->delta_base_oid, p->repo->hash_algo);
}
- oi->whence = OI_PACKED;
-
if (oi->sourcep) {
if (!source)
BUG("cannot request source without an owning source");