aboutsummaryrefslogtreecommitdiffstats
path: root/commit.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-12-18 14:10:11 -0800
committerJunio C Hamano <gitster@pobox.com>2023-12-18 14:10:11 -0800
commit66685e85556ad1890d896bc30ba3a7a99bf4dd78 (patch)
treedcd8551f6104050a57a6a3eca6be3668e083d67e /commit.c
parentMerge branch 'cc/git-replay' (diff)
parentcommit-graph: disable GIT_COMMIT_GRAPH_PARANOIA by default (diff)
downloadgit-66685e85556ad1890d896bc30ba3a7a99bf4dd78.tar.gz
git-66685e85556ad1890d896bc30ba3a7a99bf4dd78.zip
Merge branch 'ps/commit-graph-less-paranoid'
Earlier we stopped relying on commit-graph that (still) records information about commits that are lost from the object store, which has negative performance implications. The default has been flipped to disable this pessimization. * ps/commit-graph-less-paranoid: commit-graph: disable GIT_COMMIT_GRAPH_PARANOIA by default
Diffstat (limited to 'commit.c')
-rw-r--r--commit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commit.c b/commit.c
index 8405d7c3fc..37956b836c 100644
--- a/commit.c
+++ b/commit.c
@@ -577,7 +577,7 @@ int repo_parse_commit_internal(struct repository *r,
static int commit_graph_paranoia = -1;
if (commit_graph_paranoia == -1)
- commit_graph_paranoia = git_env_bool(GIT_COMMIT_GRAPH_PARANOIA, 1);
+ commit_graph_paranoia = git_env_bool(GIT_COMMIT_GRAPH_PARANOIA, 0);
if (commit_graph_paranoia && !has_object(r, &item->object.oid, 0)) {
unparse_commit(r, &item->object.oid);