summaryrefslogtreecommitdiff
path: root/contrib/git-shell-commands
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2018-08-28 17:22:59 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-08-29 11:32:49 -0700
commit6a29d7b7a72c7b131ae3cda9e0b47b67a27a51f1 (patch)
tree6c1bb588fa181665d031b96f4b3a0488538bc6b2 /contrib/git-shell-commands
parentconvert hashmap comparison functions to oideq() (diff)
downloadtgif-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 'contrib/git-shell-commands')
0 files changed, 0 insertions, 0 deletions