From: Junio C Hamano Date: Fri, 21 Oct 2005 00:43:04 GMT Subject: Re: [PATCH] Do not send "want" lines for complete objects Message-ID: In-Reply-To: Johannes Schindelin gmx.de> writes: > ... I did not use it originally, because lines > 24-25 of commit.h say > > /** Internal only **/ > struct object *lookup_object(const unsigned char *sha1); > > Is this obsolete? For this particular application, it should be OK, because: - it checks if we already have that object, and returns a pointer to it; - if we haven't seen that object, we get a NULL back; and - what we care about is to see if we have checked and verified if it is reachable from our refs. We do not want the check to actively go read and parse that object. -jc