]> git.ipfire.org Git - thirdparty/git.git/blobdiff - object.c
Merge branch 'ak/commit-graph-to-slab'
[thirdparty/git.git] / object.c
index 794c86650e9a976a0667cb8103a4ae0a9a0deaf2..32575186562507b2774c6abf097df7810e9cce5e 100644 (file)
--- a/object.c
+++ b/object.c
@@ -157,13 +157,13 @@ void *create_object(struct repository *r, const struct object_id *oid, void *o)
        return obj;
 }
 
-void *object_as_type(struct repository *r, struct object *obj, enum object_type type, int quiet)
+void *object_as_type(struct object *obj, enum object_type type, int quiet)
 {
        if (obj->type == type)
                return obj;
        else if (obj->type == OBJ_NONE) {
                if (type == OBJ_COMMIT)
-                       init_commit_node(r, (struct commit *) obj);
+                       init_commit_node((struct commit *) obj);
                else
                        obj->type = type;
                return obj;