summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorDerrick Stolee <dstolee@microsoft.com>2021-02-01 17:15:03 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-02-02 05:03:35 (GMT)
commitc4cc08316944d17fc214bdad47bb4e92c31d0751 (patch)
tree71be12980559b5ab774ab4b53e154d18db196944 /commit.h
parent5a3b130cad0d5c770f766e3af6d32b41766374c0 (diff)
downloadgit-c4cc08316944d17fc214bdad47bb4e92c31d0751.zip
git-c4cc08316944d17fc214bdad47bb4e92c31d0751.tar.gz
git-c4cc08316944d17fc214bdad47bb4e92c31d0751.tar.bz2
commit-graph: use repo_parse_commit
The write_commit_graph_context has a repository pointer, so use it. Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Reviewed-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.h')
-rw-r--r--commit.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/commit.h b/commit.h
index 251d877..b05ab55 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