From: Johannes Schindelin Date: Wed, 18 Oct 2006 10:00:28 GMT Subject: Re: heads-up: git-index-pack in "next" is broken Message-ID: In-Reply-To: <7vu022gqji.fsf@assigned-by-dhcp.cox.net> Hi, On Tue, 17 Oct 2006, Junio C Hamano wrote: > +/* > + * Even if sizeof(union delta_base) == 24 on 64-bit archs, we really want > + * to memcmp() only the first 20 bytes. > + */ > +#define UNION_BASE_SZ 20 Excuse me for joining the game, but why don't you just use the recently introduced hashcmp() for that purpose? AFAIU you do exactly that, you compare hashes. Ciao, Dscho