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:
@ -800,7 +800,7 @@ static int run_rebase(const struct object_id *curr_head,
|
||||
struct argv_array args = ARGV_ARRAY_INIT;
|
||||
|
||||
if (!get_octopus_merge_base(&oct_merge_base, curr_head, merge_head, fork_point))
|
||||
if (!is_null_oid(fork_point) && !oidcmp(&oct_merge_base, fork_point))
|
||||
if (!is_null_oid(fork_point) && oideq(&oct_merge_base, fork_point))
|
||||
fork_point = NULL;
|
||||
|
||||
argv_array_push(&args, "rebase");
|
||||
@ -903,7 +903,7 @@ int cmd_pull(int argc, const char **argv, const char *prefix)
|
||||
oidclr(&curr_head);
|
||||
|
||||
if (!is_null_oid(&orig_head) && !is_null_oid(&curr_head) &&
|
||||
oidcmp(&orig_head, &curr_head)) {
|
||||
!oideq(&orig_head, &curr_head)) {
|
||||
/*
|
||||
* The fetch involved updating the current branch.
|
||||
*
|
||||
|
Reference in New Issue
Block a user