pack: convert struct pack_idx_entry to struct object_id
[gitweb.git] / log-tree.c
index 4618dd04ca1b6bd2bf53481f39851fb4e5d02336..7fb1a85d2de3f0369829957f0aeb3382667c6482 100644 (file)
@@ -140,7 +140,7 @@ static int add_ref_decoration(const char *refname, const struct object_id *oid,
 
 static int add_graft_decoration(const struct commit_graft *graft, void *cb_data)
 {
-       struct commit *commit = lookup_commit(graft->oid.hash);
+       struct commit *commit = lookup_commit(&graft->oid);
        if (!commit)
                return 0;
        add_name_decoration(DECORATION_GRAFTED, "grafted", &commit->object);