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:
@ -717,7 +717,7 @@ int cache_tree_matches_traversal(struct cache_tree *root,
|
||||
|
||||
it = find_cache_tree_from_traversal(root, info);
|
||||
it = cache_tree_find(it, ent->path);
|
||||
if (it && it->entry_count > 0 && !oidcmp(ent->oid, &it->oid))
|
||||
if (it && it->entry_count > 0 && oideq(ent->oid, &it->oid))
|
||||
return it->entry_count;
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user