Unidiff1 files changed, 13 insertions, 0 deletions
|
diff --git a/git.h b/git.h index dfa3542..a3f977c 100644 --- a/ git.h+++ b/ git.h |
|
@@ -183,16 +183,29 @@ struct object { |
183 | |
183 | |
184 | struct tree { |
184 | struct tree { |
185 | struct object object; |
185 | struct object object; |
186 | void *buffer; |
186 | void *buffer; |
187 | unsigned long size; |
187 | unsigned long size; |
188 | }; |
188 | }; |
189 | |
189 | |
190 | |
190 | |
| |
191 | struct tree *lookup_tree(const unsigned char *sha1); |
| |
192 | int parse_tree_buffer(struct tree *item, void *buffer, unsigned long size); |
| |
193 | int parse_tree(struct tree *tree); |
| |
194 | struct tree *parse_tree_indirect(const unsigned char *sha1); |
| |
195 | |
| |
196 | typedef int (*read_tree_fn_t)(const unsigned char *, const char *, int, const char *, unsigned int, int); |
| |
197 | |
| |
198 | extern int read_tree_recursive(struct tree *tree, |
| |
199 | const char *base, int baselen, |
| |
200 | int stage, const char **match, |
| |
201 | read_tree_fn_t fn); |
| |
202 | |
| |
203 | extern int read_tree(struct tree *tree, int stage, const char **paths); |
191 | |
204 | |
192 | |
205 | |
193 | /* from git:commit.h */ |
206 | /* from git:commit.h */ |
194 | |
207 | |
195 | struct commit_list { |
208 | struct commit_list { |
196 | struct commit *item; |
209 | struct commit *item; |
197 | struct commit_list *next; |
210 | struct commit_list *next; |
198 | }; |
211 | }; |
|