Re: [PATCH 2/9] introduce hasheq() and oideq()
On 25/08/18 10:05, Jeff King wrote:
> The main comparison functions we provide for comparing
> object ids are hashcmp() and oidcmp(). These are more
> flexible than a strict equality check, since they also
> express ordering. That makes them them useful for sorting
> We can solve that by introducing a hasheq() function (and
> matching oideq() wrapper), which callers can use to make
Show 6 quoted lines
> clear that they only care about equality. For now, the
> implementation will literally be "!hashcmp()", but it frees
> us up later to introduce code optimized specifically for the
> equality check.
>
> Signed-off-by: Jeff King <peff@peff.net>