X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=tree.h;h=9975e88216dc6924c1d6e9ec3c7ae6d90c2df1dd;hb=10bea152a34b2bf1194ede5e0c9e5595ab2100f3;hp=0df065ae363c016b17db26f00b982396baf066db;hpb=9d34c29db39bdb5c2443475dd6a24cfc5c2c9e37;p=git.git diff --git a/tree.h b/tree.h index 0df065ae..9975e882 100644 --- a/tree.h +++ b/tree.h @@ -32,4 +32,7 @@ int parse_tree_buffer(struct tree *item, void *buffer, unsigned long size); int parse_tree(struct tree *tree); +/* Parses and returns the tree in the given ent, chasing tags and commits. */ +struct tree *parse_tree_indirect(const unsigned char *sha1); + #endif /* TREE_H */