From c4cc08316944d17fc214bdad47bb4e92c31d0751 Mon Sep 17 00:00:00 2001 From: Derrick Stolee Date: Mon, 1 Feb 2021 17:15:03 +0000 Subject: commit-graph: use repo_parse_commit The write_commit_graph_context has a repository pointer, so use it. Signed-off-by: Derrick Stolee Reviewed-by: Taylor Blau Signed-off-by: Junio C Hamano --- commit.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'commit.h') diff --git a/commit.h b/commit.h index 251d877fcf..b05ab558ce 100644 --- a/commit.h +++ b/commit.h @@ -89,9 +89,10 @@ static inline int repo_parse_commit(struct repository *r, struct commit *item) return repo_parse_commit_gently(r, item, 0); } -static inline int parse_commit_no_graph(struct commit *commit) +static inline int repo_parse_commit_no_graph(struct repository *r, + struct commit *commit) { - return repo_parse_commit_internal(the_repository, commit, 0, 0); + return repo_parse_commit_internal(r, commit, 0, 0); } #ifndef NO_THE_REPOSITORY_COMPATIBILITY_MACROS -- cgit v1.2.3