diff options
author | Stefan Beller <sbeller@google.com> | 2018-06-28 18:22:09 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-06-29 10:43:39 -0700 |
commit | f58a6cb60222d32063437ae85859e6e7ac7ffc8e (patch) | |
tree | a39aa36a86ea1c8377edf88608052bb92ad67382 /tree.h | |
parent | 17126cdf78dc7b8cbe6b35bc44cb74d8d0fb11ee (diff) | |
download | git-f58a6cb60222d32063437ae85859e6e7ac7ffc8e.tar.gz |
tree: allow lookup_tree to handle arbitrary repositories
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'tree.h')
-rw-r--r-- | tree.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -12,8 +12,7 @@ struct tree { unsigned long size; }; -#define lookup_tree(r, oid) lookup_tree_##r(oid) -struct tree *lookup_tree_the_repository(const struct object_id *oid); +struct tree *lookup_tree(struct repository *r, const struct object_id *oid); int parse_tree_buffer(struct tree *item, void *buffer, unsigned long size); |