treewide: replace maybe_tree with accessor methods
[gitweb.git] / commit.h
index c4d6e6e06465904d79da70662ede18cccf00621d..dc4bf97d9f3b74da1176d552f067e00b72a2d7fb 100644 (file)
--- a/commit.h
+++ b/commit.h
@@ -102,6 +102,9 @@ void unuse_commit_buffer(const struct commit *, const void *buffer);
  */
 void free_commit_buffer(struct commit *);
 
+struct tree *get_commit_tree(const struct commit *);
+struct object_id *get_commit_tree_oid(const struct commit *);
+
 /*
  * Disassociate any cached object buffer from the commit, but do not free it.
  * The buffer (or NULL, if none) is returned.