]> git.ipfire.org Git - thirdparty/git.git/blame - tree.h
Automatic merge of /home/torvalds/junkio/.git/
[thirdparty/git.git] / tree.h
CommitLineData
6eb8ae00
DB
1#ifndef TREE_H
2#define TREE_H
3
4#include "object.h"
5
6extern const char *tree_type;
7
08692164
DB
8struct tree_entry_list {
9 struct tree_entry_list *next;
10 unsigned directory : 1;
11 unsigned executable : 1;
12 char *name;
13 union {
14 struct tree *tree;
15 struct blob *blob;
16 } item;
17};
18
6eb8ae00
DB
19struct tree {
20 struct object object;
08692164 21 struct tree_entry_list *entries;
6eb8ae00
DB
22};
23
24struct tree *lookup_tree(unsigned char *sha1);
25
26int parse_tree(struct tree *tree);
27
28#endif /* TREE_H */