diff options
author | Derrick Stolee <dstolee@microsoft.com> | 2021-02-01 17:15:03 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-02-01 21:03:35 -0800 |
commit | c4cc08316944d17fc214bdad47bb4e92c31d0751 (patch) | |
tree | 71be12980559b5ab774ab4b53e154d18db196944 /commit.h | |
parent | 5a3b130cad0d5c770f766e3af6d32b41766374c0 (diff) | |
download | git-c4cc08316944d17fc214bdad47bb4e92c31d0751.tar.gz |
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 |