]> git.ipfire.org Git - thirdparty/git.git/blobdiff - merge-recursive.c
convert "oidcmp() == 0" to oideq()
[thirdparty/git.git] / merge-recursive.c
index dcdc93019cec870f196191caf3055611faae4ede..2904cb825eea64bef30d99417f343fe63ddcb12a 100644 (file)
@@ -156,7 +156,7 @@ static struct tree *shift_tree_object(struct tree *one, struct tree *two,
                shift_tree_by(&one->object.oid, &two->object.oid, &shifted,
                              subtree_shift);
        }
-       if (!oidcmp(&two->object.oid, &shifted))
+       if (oideq(&two->object.oid, &shifted))
                return two;
        return lookup_tree(the_repository, &shifted);
 }
@@ -179,7 +179,7 @@ static int oid_eq(const struct object_id *a, const struct object_id *b)
 {
        if (!a && !b)
                return 2;
-       return a && b && oidcmp(a, b) == 0;
+       return a && b && oideq(a, b);
 }
 
 enum rename_type {