]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/log.c
Convert find_unique_abbrev* to struct object_id
[thirdparty/git.git] / builtin / log.c
index 32a744bfd2062e93a3b7047eb3bc905ca9dbe047..411339c1ed22a3fe00309c08b9a007da862051cb 100644 (file)
@@ -1873,12 +1873,12 @@ static void print_commit(char sign, struct commit *commit, int verbose,
 {
        if (!verbose) {
                fprintf(file, "%c %s\n", sign,
-                      find_unique_abbrev(commit->object.oid.hash, abbrev));
+                      find_unique_abbrev(&commit->object.oid, abbrev));
        } else {
                struct strbuf buf = STRBUF_INIT;
                pp_commit_easy(CMIT_FMT_ONELINE, commit, &buf);
                fprintf(file, "%c %s %s\n", sign,
-                      find_unique_abbrev(commit->object.oid.hash, abbrev),
+                      find_unique_abbrev(&commit->object.oid, abbrev),
                       buf.buf);
                strbuf_release(&buf);
        }