aboutsummaryrefslogtreecommitdiffstats
path: root/commit-graph.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-11-08 11:03:59 +0900
committerJunio C Hamano <gitster@pobox.com>2023-11-08 11:03:59 +0900
commit42b87f7ee60323f2e45a91233db80d44d3e33ad2 (patch)
treef9d4dea38078ea4071e85adabdcd19f5c5840adf /commit-graph.h
parent234037dbec13b5c94c014b9c46042252dff8bef7 (diff)
parent7a5d604443ffc7afcd3788818f8fe00fc68c054d (diff)
downloadgit-42b87f7ee60323f2e45a91233db80d44d3e33ad2.tar.gz
Merge branch 'ps/do-not-trust-commit-graph-blindly-for-existence'
The codepath to traverse the commit-graph learned to notice that a commit is missing (e.g., corrupt repository lost an object), even though it knows something about the commit (like its parents) from what is in commit-graph. * ps/do-not-trust-commit-graph-blindly-for-existence: commit: detect commits that exist in commit-graph but not in the ODB commit-graph: introduce envvar to disable commit existence checks
Diffstat (limited to 'commit-graph.h')
-rw-r--r--commit-graph.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/commit-graph.h b/commit-graph.h
index c6870274c5..e519cb81cb 100644
--- a/commit-graph.h
+++ b/commit-graph.h
@@ -9,6 +9,12 @@
#define GIT_TEST_COMMIT_GRAPH_CHANGED_PATHS "GIT_TEST_COMMIT_GRAPH_CHANGED_PATHS"
/*
+ * This environment variable controls whether commits looked up via the
+ * commit graph will be double checked to exist in the object database.
+ */
+#define GIT_COMMIT_GRAPH_PARANOIA "GIT_COMMIT_GRAPH_PARANOIA"
+
+/*
* This method is only used to enhance coverage of the commit-graph
* feature in the test suite with the GIT_TEST_COMMIT_GRAPH and
* GIT_TEST_COMMIT_GRAPH_CHANGED_PATHS environment variables. Do not