X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=object.h;h=ca455d57117af5f15e83b791a336351b43af6716;hb=5d6ccf5ce7f28e576a87f6c6f4f99fae90e06db6;hp=cde8471b56eb351152c3532a2f669208b3eb13bb;hpb=e0f0e891c1742c6ae22dbc648a1000ad8655ff34;p=git.git diff --git a/object.h b/object.h index cde8471b..ca455d57 100644 --- a/object.h +++ b/object.h @@ -21,12 +21,12 @@ struct object { extern int nr_objs; extern struct object **objs; -struct object *lookup_object(unsigned char *sha1); +struct object *lookup_object(const unsigned char *sha1); -void created_object(unsigned char *sha1, struct object *obj); +void created_object(const unsigned char *sha1, struct object *obj); /** Returns the object, having parsed it to find out what it is. **/ -struct object *parse_object(unsigned char *sha1); +struct object *parse_object(const unsigned char *sha1); void add_ref(struct object *refer, struct object *target);