Signed-off-by: Stefan Beller <sbeller@xxxxxxxxxx> --- commit.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/commit.h b/commit.h index 153f13600b..b60c287e7d 100644 --- a/commit.h +++ b/commit.h @@ -66,10 +66,9 @@ struct commit *lookup_commit_or_die(const struct object_id *oid, const char *ref int parse_commit_buffer(struct repository *r, struct commit *item, const void *buffer, unsigned long size); int parse_commit_gently(struct repository *r, struct commit *item, int quiet_on_missing); -#define parse_commit(r, i) parse_commit_##r(i) -static inline int parse_commit_the_repository(struct commit *item) +static inline int parse_commit(struct repository *r, struct commit *item) { - return parse_commit_gently(the_repository, item, 0); + return parse_commit_gently(r, item, 0); } void parse_commit_or_die(struct commit *item); -- 2.15.1.433.g936d1b9894.dirty