X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=object.h;h=036bd66fe9b6591e959e6df51160e636ab1a682e;hb=e8e29c7b5507ed97067391490adbeeca2b1bca34;hp=94f19eed86ceebcc85770a379faf7b1270d1fad4;hpb=4342572600f446b9f8db553df03d458229f944dd;p=git.git diff --git a/object.h b/object.h index 94f19eed8..036bd66fe 100644 --- a/object.h +++ b/object.h @@ -35,14 +35,11 @@ struct object { unsigned char sha1[20]; }; -extern int track_object_refs; - extern const char *typename(unsigned int type); extern int type_from_string(const char *str); extern unsigned int get_max_object_index(void); extern struct object *get_indexed_object(unsigned int); -extern struct object_refs *lookup_object_refs(struct object *); /** Internal only **/ struct object *lookup_object(const unsigned char *sha1); @@ -61,12 +58,7 @@ struct object *parse_object_buffer(const unsigned char *sha1, enum object_type t /** Returns the object, with potentially excess memory allocated. **/ struct object *lookup_unknown_object(const unsigned char *sha1); -struct object_refs *alloc_object_refs(unsigned count); -void set_object_refs(struct object *obj, struct object_refs *refs); - -void mark_reachable(struct object *obj, unsigned int mask); - -struct object_list *object_list_insert(struct object *item, +struct object_list *object_list_insert(struct object *item, struct object_list **list_p); void object_list_append(struct object *item,