aboutsummaryrefslogtreecommitdiffstats
path: root/commit-graph.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-09-08 14:54:35 -0700
committerJunio C Hamano <gitster@pobox.com>2025-09-08 14:54:35 -0700
commit95a8428323a573963c93ece8f875dd3cd25a1a11 (patch)
tree5cd7765c7286b29e99700f02348d758b40d33e11 /commit-graph.c
parentMerge branch 'ds/ls-files-lazy-unsparse' (diff)
parentlast-modified: use Bloom filters when available (diff)
downloadgit-95a8428323a573963c93ece8f875dd3cd25a1a11.tar.gz
git-95a8428323a573963c93ece8f875dd3cd25a1a11.zip
Merge branch 'tc/last-modified'
A new command "git last-modified" has been added to show the closest ancestor commit that touched each path. * tc/last-modified: last-modified: use Bloom filters when available t/perf: add last-modified perf script last-modified: new subcommand to show when files were last modified
Diffstat (limited to 'commit-graph.c')
-rw-r--r--commit-graph.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/commit-graph.c b/commit-graph.c
index 3cd9e73e2a..2f20f66cfd 100644
--- a/commit-graph.c
+++ b/commit-graph.c
@@ -812,7 +812,12 @@ int corrected_commit_dates_enabled(struct repository *r)
struct bloom_filter_settings *get_bloom_filter_settings(struct repository *r)
{
- struct commit_graph *g = r->objects->commit_graph;
+ struct commit_graph *g;
+
+ if (!prepare_commit_graph(r))
+ return NULL;
+
+ g = r->objects->commit_graph;
while (g) {
if (g->bloom_filter_settings)
return g->bloom_filter_settings;