diff options
author | Lars Hjemli <hjemli@gmail.com> | 2006-12-13 00:13:27 +0100 |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2006-12-13 00:13:27 +0100 |
commit | 06fe0c2f47eaf467db8ab1443e61dfa1c280f30a (patch) | |
tree | 481164eeeeb5ca3302f7b3d38d1debbad9db9296 /git.h | |
parent | 58d04f6523b0029281d65f841859fa42d0c744ff (diff) |
Add display of tree content w/ui-tree.c
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to '')
-rw-r--r-- | git.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -188,6 +188,19 @@ struct tree { }; +struct tree *lookup_tree(const unsigned char *sha1); +int parse_tree_buffer(struct tree *item, void *buffer, unsigned long size); +int parse_tree(struct tree *tree); +struct tree *parse_tree_indirect(const unsigned char *sha1); + +typedef int (*read_tree_fn_t)(const unsigned char *, const char *, int, const char *, unsigned int, int); + +extern int read_tree_recursive(struct tree *tree, + const char *base, int baselen, + int stage, const char **match, + read_tree_fn_t fn); + +extern int read_tree(struct tree *tree, int stage, const char **paths); /* from git:commit.h */ |