diff options
author | Jeff King <peff@peff.net> | 2018-08-28 17:22:59 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-08-29 11:32:49 -0700 |
commit | 6a29d7b7a72c7b131ae3cda9e0b47b67a27a51f1 (patch) | |
tree | 6c1bb588fa181665d031b96f4b3a0488538bc6b2 /builtin/clean.c | |
parent | convert hashmap comparison functions to oideq() (diff) | |
download | tgif-6a29d7b7a72c7b131ae3cda9e0b47b67a27a51f1.tar.xz |
read-cache: use oideq() in ce_compare functions
These functions return the full oidcmp() value, but the
callers really only care whether it is non-zero. We can use
the more strict !oideq(), which a compiler may be able to
optimize further.
This does change the meaning of the return value subtly, but
it's unlikely that anybody would try to use them for
ordering. They're static-local in this file, and they
already return other error values that would confuse an
ordering (e.g., open() failure gives -1).
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/clean.c')
0 files changed, 0 insertions, 0 deletions