]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/fetch.c
convert "oidcmp() == 0" to oideq()
[thirdparty/git.git] / builtin / fetch.c
index 61bec5d213d47141d14162bd1a2ca88861c22ef7..32b1d5d38353e9b86215ad6f4a8d189ee3cca113 100644 (file)
@@ -507,7 +507,7 @@ static void adjust_refcol_width(const struct ref *ref)
        int max, rlen, llen, len;
 
        /* uptodate lines are only shown on high verbosity level */
-       if (!verbosity && !oidcmp(&ref->peer_ref->old_oid, &ref->old_oid))
+       if (!verbosity && oideq(&ref->peer_ref->old_oid, &ref->old_oid))
                return;
 
        max    = term_columns();
@@ -644,7 +644,7 @@ static int update_local_ref(struct ref *ref,
        if (type < 0)
                die(_("object %s not found"), oid_to_hex(&ref->new_oid));
 
-       if (!oidcmp(&ref->old_oid, &ref->new_oid)) {
+       if (oideq(&ref->old_oid, &ref->new_oid)) {
                if (verbosity > 0)
                        format_display(display, '=', _("[up to date]"), NULL,
                                       remote, pretty_ref, summary_width);