object.hon commit Do not report size of the object that cannot be written in local-pull.c (b4635be)
   1#ifndef OBJECT_H
   2#define OBJECT_H
   3
   4struct object_list {
   5        struct object *item;
   6        struct object_list *next;
   7};
   8
   9struct 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;
  16};
  17
  18int nr_objs;
  19struct object **objs;
  20
  21struct object *lookup_object(unsigned char *sha1);
  22
  23void created_object(unsigned char *sha1, struct object *obj);
  24
  25/** Returns the object, having parsed it to find out what it is. **/
  26struct object *parse_object(unsigned char *sha1);
  27
  28void add_ref(struct object *refer, struct object *target);
  29
  30void mark_reachable(struct object *obj, unsigned int mask);
  31
  32#endif /* OBJECT_H */