[PATCH] Fix git-diff-files for symlinks.
[git/dscho.git] / object.h
blob09700d376077b2d6136620faf6efb77ee679deeb
1 #ifndef OBJECT_H
2 #define OBJECT_H
4 struct object_list {
5 struct object *item;
6 struct object_list *next;
7 };
9 struct object {
10 unsigned parsed : 1;
11 unsigned used : 1;
12 unsigned int flags;
13 unsigned char sha1[20];
14 const char *type;
15 struct object_list *refs;
18 extern int nr_objs;
19 extern struct object **objs;
21 struct object *lookup_object(unsigned char *sha1);
23 void created_object(unsigned char *sha1, struct object *obj);
25 /** Returns the object, having parsed it to find out what it is. **/
26 struct object *parse_object(unsigned char *sha1);
28 void add_ref(struct object *refer, struct object *target);
30 void mark_reachable(struct object *obj, unsigned int mask);
32 #endif /* OBJECT_H */