fsck-cache: report broken links correctly
[git/jrn.git] / tree.h
blob96cf4291d11453b4489d2bf5234938054fe6b7bd
1 #ifndef TREE_H
2 #define TREE_H
4 #include "object.h"
6 extern const char *tree_type;
8 struct tree_entry_list {
9 struct tree_entry_list *next;
10 unsigned directory : 1;
11 unsigned executable : 1;
12 char *name;
13 union {
14 struct tree *tree;
15 struct blob *blob;
16 } item;
19 struct tree {
20 struct object object;
21 struct tree_entry_list *entries;
24 struct tree *lookup_tree(unsigned char *sha1);
26 int parse_tree(struct tree *tree);
28 #endif /* TREE_H */