Re: [PATCH 01/10] commit-graph: introduce 'get_bloom_filter_settings()'
- From
Jeff King <peff@peff.net>
- Date
- Aug 4, 2020, 07:24 UTC
- Message-ID
- <20200804072417.GA183951@coredump.intra.peff.net>
- In-Reply-To
- <08479793c1274d5ee0f063578bb0f4d93c910fa9.1596480582.git.me@ttaylorr.com>
On Mon, Aug 03, 2020 at 02:57:09PM -0400, Taylor Blau wrote:
Show 12 quoted lines
> diff --git a/revision.c b/revision.c > index 6de29cdf7a..e244beed05 100644 > --- a/revision.c > +++ b/revision.c > @@ -684,7 +684,7 @@ static void prepare_to_use_bloom_filter(struct rev_info *revs) > if (!revs->repo->objects->commit_graph) > return; > > - revs->bloom_filter_settings = revs->repo->objects->commit_graph->bloom_filter_settings; > + revs->bloom_filter_settings = get_bloom_filter_settings(revs->repo); > if (!revs->bloom_filter_settings) > return;
I think you could get rid of the revs->repo->objects->commit_graph check above now, as get_bloom_filter_settings() would return NULL if there is no commit_graph at all.
-Peff