]> git.proxmox.com Git - libgit2.git/blob - src/tree.h
Merge pull request #392 from sschuberth/development
[libgit2.git] / src / tree.h
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 */
7 #ifndef INCLUDE_tree_h__
8 #define INCLUDE_tree_h__
9
10 #include "git2/tree.h"
11 #include "repository.h"
12 #include "odb.h"
13 #include "vector.h"
14
15 struct git_tree_entry {
16 unsigned int attr;
17 char *filename;
18 git_oid oid;
19 size_t filename_len;
20 int removed;
21 };
22
23 struct git_tree {
24 git_object object;
25 git_vector entries;
26 };
27
28 struct git_treebuilder {
29 git_vector entries;
30 size_t entry_count;
31 };
32
33
34 void git_tree__free(git_tree *tree);
35 int git_tree__parse(git_tree *tree, git_odb_object *obj);
36
37 #endif