X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=tree.h;h=056bd86fa9e5a62207bd52fbb124f080e8854253;hb=000182eacf99cde27d5916aa415921924b82972c;hp=19b190565957a7a03c34f7efa68a7fe0c6783d04;hpb=08692164e0937352fb2c8aab5a7318facbd07daa;p=git.git diff --git a/tree.h b/tree.h index 19b19056..056bd86f 100644 --- a/tree.h +++ b/tree.h @@ -9,21 +9,25 @@ struct tree_entry_list { struct tree_entry_list *next; unsigned directory : 1; unsigned executable : 1; + unsigned symlink : 1; + unsigned int mode; char *name; union { struct tree *tree; struct blob *blob; } item; + struct tree_entry_list *parent; }; struct tree { struct object object; - unsigned has_full_path : 1; struct tree_entry_list *entries; }; struct tree *lookup_tree(unsigned char *sha1); +int parse_tree_buffer(struct tree *item, void *buffer, unsigned long size); + int parse_tree(struct tree *tree); #endif /* TREE_H */