diff options
author | Junio C Hamano <gitster@pobox.com> | 2025-09-08 14:54:35 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2025-09-08 14:54:35 -0700 |
commit | 95a8428323a573963c93ece8f875dd3cd25a1a11 (patch) | |
tree | 5cd7765c7286b29e99700f02348d758b40d33e11 /commit-graph.c | |
parent | 576e0b6eb34f8989f07ae77db10baf1c75125c47 (diff) | |
parent | 8d9a7cdfda4c883e83d6ea7b57d0a1d989a7d439 (diff) |
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.c | 7 |
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; |