diff options
author | Vicent Marti <tanoku@gmail.com> | 2010-08-12 18:45:31 +0200 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2010-08-12 18:49:04 +0200 |
commit | 003c26909451715cf36ea37ae4a6237813b4a25e (patch) | |
tree | 00f369a7a34eb7cbf3e2785c567ccaa618f8d40f /src/tree.h | |
parent | ff17642dc212bd345fda7dc213f08f8815c96841 (diff) | |
download | libgit2-003c26909451715cf36ea37ae4a6237813b4a25e.tar.gz |
Finish the tree object API
The interface for loading and parsing tree objects from a repository has
been completed with all the required accesor methods for attributes,
support for manipulating individual tree entries and a new unit test
t0901-readtree which tries to load and parse a tree object from a
repository.
Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'src/tree.h')
-rw-r--r-- | src/tree.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/tree.h b/src/tree.h index f21668586..2222b0349 100644 --- a/src/tree.h +++ b/src/tree.h @@ -5,22 +5,18 @@ #include "repository.h" struct git_tree_entry { - - unsigned int attr; + uint32_t attr; char *filename; git_oid oid; - struct git_tree_entry *next; + git_tree *owner; }; -typedef struct git_tree_entry git_tree_entry; - struct git_tree { git_repository_object object; - size_t byte_size; git_tree_entry *entries; - unsigned int entry_count; + size_t entry_count; }; void git_tree__free(git_tree *tree); |