Re: [PATCH v2 28/51] refs.c: rename ref_array -> ref_dir
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Dec 14, 2011, 00:19 UTC
- Message-ID
- <7vborct37c.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <7vzkewt5qu.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 6 quoted lines
>> Namely, we should figure out what code wants to set extra refs and or >> wants to include extra refs in its iteration over references. The >> setters don't have to be changed, but the readers should be. > > You read me correctly. That is exactly what I meant by "extra ref API" in > my earlier response.
Actually, I do not think it even needs to be the "extra *REF* API". The only thing that matters is that these commits are considered to be extra anchor point in the history, in addition to the usual rule of considering that everything reachable from our refs is complete. The data structure to hold them does not even have to be a "struct ref". Just an array of object names (or "struct object *") should suffice.