]>
Commit | Line | Data |
---|---|---|
bb742ede VM |
1 | /* |
2 | * Copyright (C) 2009-2011 the libgit2 contributors | |
3 | * | |
4 | * This file is part of libgit2, distributed under the GNU GPL v2 with | |
5 | * a Linking Exception. For full terms see the included COPYING file. | |
6 | */ | |
225fe215 VM |
7 | #ifndef INCLUDE_tree_h__ |
8 | #define INCLUDE_tree_h__ | |
9 | ||
44908fe7 | 10 | #include "git2/tree.h" |
3315782c | 11 | #include "repository.h" |
72a3fe42 | 12 | #include "odb.h" |
c4034e63 | 13 | #include "vector.h" |
225fe215 | 14 | |
d8603ed9 | 15 | struct git_tree_entry { |
370ce569 | 16 | unsigned int attr; |
58519018 | 17 | char *filename; |
d8603ed9 | 18 | git_oid oid; |
0ad6efa1 VM |
19 | size_t filename_len; |
20 | int removed; | |
d8603ed9 VM |
21 | }; |
22 | ||
225fe215 | 23 | struct git_tree { |
f49a2e49 | 24 | git_object object; |
c4034e63 | 25 | git_vector entries; |
225fe215 VM |
26 | }; |
27 | ||
0ad6efa1 VM |
28 | struct git_treebuilder { |
29 | git_vector entries; | |
30 | size_t entry_count; | |
31 | }; | |
32 | ||
33 | ||
225fe215 | 34 | void git_tree__free(git_tree *tree); |
72a3fe42 | 35 | int git_tree__parse(git_tree *tree, git_odb_object *obj); |
225fe215 VM |
36 | |
37 | #endif |