Unidiff1 files changed, 4 insertions, 0 deletions
|
diff --git a/git.h b/git.h index 991eaa5..eca48d5 100644 --- a/ git.h+++ b/ git.h |
|
@@ -269,24 +269,28 @@ struct object_array { |
269 | /* |
269 | /* |
270 | * The object type is stored in 3 bits. |
270 | * The object type is stored in 3 bits. |
271 | */ |
271 | */ |
272 | struct object { |
272 | struct object { |
273 | unsigned parsed : 1; |
273 | unsigned parsed : 1; |
274 | unsigned used : 1; |
274 | unsigned used : 1; |
275 | unsigned type : TYPE_BITS; |
275 | unsigned type : TYPE_BITS; |
276 | unsigned flags : FLAG_BITS; |
276 | unsigned flags : FLAG_BITS; |
277 | unsigned char sha1[20]; |
277 | unsigned char sha1[20]; |
278 | }; |
278 | }; |
279 | |
279 | |
280 | |
280 | |
| |
281 | /** Returns the object, having parsed it to find out what it is. **/ |
| |
282 | struct object *parse_object(const unsigned char *sha1); |
| |
283 | |
| |
284 | |
281 | /* |
285 | /* |
282 | * from git:tree.h |
286 | * from git:tree.h |
283 | */ |
287 | */ |
284 | |
288 | |
285 | struct tree { |
289 | struct tree { |
286 | struct object object; |
290 | struct object object; |
287 | void *buffer; |
291 | void *buffer; |
288 | unsigned long size; |
292 | unsigned long size; |
289 | }; |
293 | }; |
290 | |
294 | |
291 | |
295 | |
292 | struct tree *lookup_tree(const unsigned char *sha1); |
296 | struct tree *lookup_tree(const unsigned char *sha1); |
|