Files
git/builtin
Jeff King cc00e5ce6b convert hashmap comparison functions to oideq()
The comparison functions used for hashmaps don't care about
strict ordering; they only want to compare entries for
equality. Let's use the oideq() function instead, which can
potentially be better optimized. Note that unlike the
previous patches mass-converting calls like "!oidcmp()",
this patch could actually provide an improvement even with
the current implementation. Those comparison functions are
passed around as function pointers, so at compile-time the
compiler cannot realize that the caller (which is in another
file completely) will treat the return value as a boolean.

Note that this does change the return values in quite a
subtle way (it's still an int, but now the sign bit is
irrelevant for ordering). Because of their funny
hashmap-specific signature, it's unlikely that any of these
static functions would be reused for more generic ordering.
But to be double-sure, let's stop using "cmp" in their
names.

Calling them "eq" doesn't quite work either, because the
hashmap convention is actually _inverted_. "0" means "same",
and non-zero means "different". So I've called them "neq" by
convention here.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2018-08-29 11:32:49 -07:00
..
2018-08-20 11:33:53 -07:00
2018-08-29 11:32:49 -07:00
2018-08-13 14:14:43 -07:00
2018-08-20 11:33:53 -07:00
2018-08-20 11:33:53 -07:00
2018-08-27 14:33:43 -07:00
2018-08-29 11:32:49 -07:00
2018-05-13 10:45:05 +09:00
2018-08-20 11:33:53 -07:00
2018-08-15 15:08:23 -07:00
2017-10-07 16:27:55 +09:00
2018-08-29 11:32:49 -07:00
2018-08-29 11:32:49 -07:00
2018-05-08 15:59:16 +09:00
2018-08-29 11:32:49 -07:00
2018-08-15 15:08:23 -07:00
2018-08-20 11:33:53 -07:00
2018-06-01 15:06:37 +09:00
2018-08-29 11:32:49 -07:00
2018-05-23 14:38:15 +09:00
2018-08-29 11:32:49 -07:00
2018-05-30 14:04:05 +09:00
2018-07-18 12:20:28 -07:00
2018-08-29 11:32:49 -07:00
2018-08-27 14:33:43 -07:00
2018-07-18 12:20:28 -07:00
2018-08-29 11:32:49 -07:00
2018-08-29 11:32:49 -07:00
2018-08-29 11:32:49 -07:00
2018-08-27 14:33:43 -07:00
2018-03-15 12:01:08 -07:00
2018-08-17 13:09:56 -07:00
2018-05-29 00:28:22 +09:00
2018-08-29 11:32:49 -07:00
2018-08-17 15:18:01 -07:00