]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/show-ref.c
cocci: apply the "cache.h" part of "the_repository.pending"
[thirdparty/git.git] / builtin / show-ref.c
index 3af6a53ee9750ef5d4e45031ae0088d5e12f37a4..eb3ad1688ba3614cb273de27438538bbfeacd1b4 100644 (file)
@@ -33,7 +33,7 @@ static void show_one(const char *refname, const struct object_id *oid)
        if (quiet)
                return;
 
-       hex = find_unique_abbrev(oid, abbrev);
+       hex = repo_find_unique_abbrev(the_repository, oid, abbrev);
        if (hash_only)
                printf("%s\n", hex);
        else
@@ -43,7 +43,7 @@ static void show_one(const char *refname, const struct object_id *oid)
                return;
 
        if (!peel_iterated_oid(oid, &peeled)) {
-               hex = find_unique_abbrev(&peeled, abbrev);
+               hex = repo_find_unique_abbrev(the_repository, &peeled, abbrev);
                printf("%s %s^{}\n", hex, refname);
        }
 }