From 77675e2aff434cb1f0e62540ae42f5716a5a778d Mon Sep 17 00:00:00 2001 From: Daniel Barkalow Date: Mon, 5 Sep 2005 02:03:51 -0400 Subject: [PATCH] Add a function for getting a struct tree for an ent. Signed-off-by: Daniel Barkalow Signed-off-by: Junio C Hamano --- tree.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tree.h') diff --git a/tree.h b/tree.h index 0df065ae363..9975e88216d 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 */ -- cgit v1.2.3