summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2020-06-23 20:56:58 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-06-24 16:13:04 (GMT)
commitea3f7e598c8f1171f0bd02da777dc526cdb8424d (patch)
treec002d0b9b6597c1d969b22b6929c70e6eb3ce028 /commit.h
parentaf6b65d45ef179ed52087e80cb089f6b2349f4ec (diff)
downloadgit-ea3f7e598c8f1171f0bd02da777dc526cdb8424d.zip
git-ea3f7e598c8f1171f0bd02da777dc526cdb8424d.tar.gz
git-ea3f7e598c8f1171f0bd02da777dc526cdb8424d.tar.bz2
revision: use repository from rev_info when parsing commits
This is needed when repo_init_revisions() is called with a repository that is not the_repository to ensure appropriate repository is used in repo_parse_commit_internal(). If the wrong repository is used, a fatal error is the commit-graph machinery occurs: fatal: invalid commit position. commit-graph is likely corrupt Since revision.c was the only user of the parse_commit_gently compatibility define, remove it from commit.h. Signed-off-by: Michael Forney <mforney@mforney.org> Acked-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.h')
-rw-r--r--commit.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/commit.h b/commit.h
index 008a0fa..28761e6 100644
--- a/commit.h
+++ b/commit.h
@@ -97,7 +97,6 @@ static inline int parse_commit_no_graph(struct commit *commit)
#ifndef NO_THE_REPOSITORY_COMPATIBILITY_MACROS
#define parse_commit_internal(item, quiet, use) repo_parse_commit_internal(the_repository, item, quiet, use)
-#define parse_commit_gently(item, quiet) repo_parse_commit_gently(the_repository, item, quiet)
#define parse_commit(item) repo_parse_commit(the_repository, item)
#endif