summary refs log tree commit diff
path: root/commit.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-02-17 17:21:40 -0800
committerJunio C Hamano <gitster@pobox.com>2021-02-17 17:21:40 -0800
commit5bd0b21bf78fa365bc5189452e3cbbbec7330002 (patch)
tree626fae7b2e20027a5d7bb8b4bbbe34fc630a5a13 /commit.h
parent8b4701ae4fa8e68362509013ceb496333b7ca0df (diff)
parentbc50d6c91f4002b4197a9f5ea5dfdc3c9f105a1c (diff)
Merge branch 'ds/commit-graph-genno-fix'
Fix incremental update of commit-graph file around corrected commit
date data.

* ds/commit-graph-genno-fix:
  commit-graph: prepare commit graph
  commit-graph: be extra careful about mixed generations
  commit-graph: compute generations separately
  commit-graph: validate layers for generation data
  commit-graph: always parse before commit_graph_data_at()
  commit-graph: use repo_parse_commit
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 0c9714827c..9e0c157bea 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