rev-cache.hon commit [PATCH] Possible cleanups for local-pull.c (2ab141a)
   1#ifndef REV_CACHE_H
   2#define REV_CACHE_H
   3
   4extern struct rev_cache {
   5        struct rev_cache *head_list;
   6        struct rev_list_elem *children;
   7        struct rev_list_elem *parents;
   8        struct rev_list_elem *parents_tail;
   9        unsigned short num_parents;
  10        unsigned short num_children;
  11        unsigned int written : 1;
  12        unsigned int parsed : 1;
  13        unsigned int work : 30;
  14        void *work_ptr;
  15        unsigned char sha1[20];
  16} **rev_cache;
  17extern int nr_revs, alloc_revs;
  18
  19struct rev_list_elem {
  20        struct rev_list_elem *next;
  21        struct rev_cache *ri;
  22};
  23
  24extern int find_rev_cache(const unsigned char *);
  25extern int read_rev_cache(const char *, FILE *, int);
  26extern int record_rev_cache(const unsigned char *, FILE *);
  27extern void write_rev_cache(const char *new, const char *old);
  28
  29#endif