unsigned int index;
timestamp_t date;
struct commit_list *parents;
- struct tree *tree;
+ struct tree *maybe_tree;
uint32_t graph_pos;
};
*/
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.