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:
@ -2078,7 +2078,7 @@ static int safe_to_abort(const struct am_state *state)
|
||||
if (get_oid("HEAD", &head))
|
||||
oidclr(&head);
|
||||
|
||||
if (!oidcmp(&head, &abort_safety))
|
||||
if (oideq(&head, &abort_safety))
|
||||
return 1;
|
||||
|
||||
warning(_("You seem to have moved HEAD since the last 'am' failure.\n"
|
||||
|
Reference in New Issue
Block a user