diff options
author | Junio C Hamano <gitster@pobox.com> | 2023-11-08 03:03:59 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-11-08 03:03:59 +0100 |
commit | 42b87f7ee60323f2e45a91233db80d44d3e33ad2 (patch) | |
tree | f9d4dea38078ea4071e85adabdcd19f5c5840adf /commit-graph.h | |
parent | Merge branch 'js/ci-use-macos-13' (diff) | |
parent | commit: detect commits that exist in commit-graph but not in the ODB (diff) | |
download | git-42b87f7ee60323f2e45a91233db80d44d3e33ad2.tar.xz git-42b87f7ee60323f2e45a91233db80d44d3e33ad2.zip |
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.h | 6 |
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 |