diff options
author | Derrick Stolee <dstolee@microsoft.com> | 2021-02-01 18:15:03 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-02-02 06:03:35 +0100 |
commit | c4cc08316944d17fc214bdad47bb4e92c31d0751 (patch) | |
tree | 71be12980559b5ab774ab4b53e154d18db196944 /commit.h | |
parent | doc: add corrected commit date info (diff) | |
download | git-c4cc08316944d17fc214bdad47bb4e92c31d0751.tar.xz git-c4cc08316944d17fc214bdad47bb4e92c31d0751.zip |
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.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |