]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/fmt-merge-msg.c
convert "oidcmp() != 0" to "!oideq()"
[thirdparty/git.git] / builtin / fmt-merge-msg.c
index 4c82c234cbf2d21c9d632f5494e8265cc351fab9..268f0c20ca8a17ae595ca363e421c0f814be956a 100644 (file)
@@ -78,9 +78,9 @@ static struct merge_parent *find_merge_parent(struct merge_parents *table,
 {
        int i;
        for (i = 0; i < table->nr; i++) {
-               if (given && oidcmp(&table->item[i].given, given))
+               if (given && !oideq(&table->item[i].given, given))
                        continue;
-               if (commit && oidcmp(&table->item[i].commit, commit))
+               if (commit && !oideq(&table->item[i].commit, commit))
                        continue;
                return &table->item[i];
        }