[PATCH 1/6] blame: drop explicit check for commit graph
- From
Patrick Steinhardt <ps@pks.im>
- Date
- Sep 4, 2025, 12:49 UTC
- Message-ID
- <20250904-b4-pks-commit-graph-via-source-v1-1-d932c2481e1a@pks.im>
- In-Reply-To
- <20250904-b4-pks-commit-graph-via-source-v1-0-d932c2481e1a@pks.im>
Our blaming subsystem knows to use bloom filters from commit graphs to speed up the whole computation. The setup of this happens in `setup_blame_bloom_data()`, where we first verify that we even have a commit graph in the first place. This check is redundant though, as we call `get_bloom_filter_settings()` immediately afterwards which, which already knows to return a `NULL` pointer in case we don't have a commit graph.
Drop the redundant check.
Signed-off-by: Patrick Steinhardt <ps@pks.im> --- blame.c | 3 --- 1 file changed, 3 deletions(-)
diff --git a/blame.c b/blame.c index f1c0670144..cb0b083423 100644 --- a/blame.c +++ b/blame.c @@ -2909,9 +2909,6 @@ void setup_blame_bloom_data(struct blame_scoreboard *sb) struct blame_bloom_data *bd; struct bloom_filter_settings *bs; - if (!sb->repo->objects->commit_graph) - return; - bs = get_bloom_filter_settings(sb->repo); if (!bs) return;
-- 2.51.0.417.g1ba7204a04.dirty