more oideq/hasheq conversions
We added faster equality-comparison functions for hashes in
14438c4497
(introduce hasheq() and oideq(), 2018-08-28). A
few topics were in-flight at the time, and can now be
converted. This covers all spots found by "make coccicheck"
in master (the coccicheck results were tweaked by hand for
style).
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
fe8321ec05
commit
e43d2dcce1
@ -497,7 +497,8 @@ static int skip_merge_working_tree(const struct checkout_opts *opts,
|
||||
* We must do the merge if we are actually moving to a new commit.
|
||||
*/
|
||||
if (!old_branch_info->commit || !new_branch_info->commit ||
|
||||
oidcmp(&old_branch_info->commit->object.oid, &new_branch_info->commit->object.oid))
|
||||
!oideq(&old_branch_info->commit->object.oid,
|
||||
&new_branch_info->commit->object.oid))
|
||||
return 0;
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user