From 08692164e0937352fb2c8aab5a7318facbd07daa Mon Sep 17 00:00:00 2001 From: Daniel Barkalow Date: Sat, 23 Apr 2005 18:47:23 -0700 Subject: [PATCH] Parse tree objects completely This adds the contents of trees to struct tree. Signed-Off-By: Daniel Barkalow Signed-off-by: Linus Torvalds --- tree.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tree.h') diff --git a/tree.h b/tree.h index 4d5496de30..19b1905659 100644 --- a/tree.h +++ b/tree.h @@ -5,9 +5,21 @@ extern const char *tree_type; +struct tree_entry_list { + struct tree_entry_list *next; + unsigned directory : 1; + unsigned executable : 1; + char *name; + union { + struct tree *tree; + struct blob *blob; + } item; +}; + struct tree { struct object object; unsigned has_full_path : 1; + struct tree_entry_list *entries; }; struct tree *lookup_tree(unsigned char *sha1); -- cgit v1.2.1