Merge branch 'jk/cocci'
spatch transformation to replace boolean uses of !hashcmp() to newly introduced oideq() is added, and applied, to regain performance lost due to support of multiple hash algorithms. * jk/cocci: show_dirstat: simplify same-content check read-cache: use oideq() in ce_compare functions convert hashmap comparison functions to oideq() convert "hashcmp() != 0" to "!hasheq()" convert "oidcmp() != 0" to "!oideq()" convert "hashcmp() == 0" to hasheq() convert "oidcmp() == 0" to oideq() introduce hasheq() and oideq() coccinelle: use <...> for function exclusion
This commit is contained in:
@ -1223,8 +1223,8 @@ static void check_aliased_update(struct command *cmd, struct string_list *list)
|
||||
|
||||
dst_cmd = (struct command *) item->util;
|
||||
|
||||
if (!oidcmp(&cmd->old_oid, &dst_cmd->old_oid) &&
|
||||
!oidcmp(&cmd->new_oid, &dst_cmd->new_oid))
|
||||
if (oideq(&cmd->old_oid, &dst_cmd->old_oid) &&
|
||||
oideq(&cmd->new_oid, &dst_cmd->new_oid))
|
||||
return;
|
||||
|
||||
dst_cmd->skip_update = 1;
|
||||
|
Reference in New Issue
Block a user