From: Elijah Newren Date: Fri, 20 Feb 2026 18:51:52 GMT Subject: Re: [PATCH v2 1/6] merge,diff: remove the_repository check before prefetching blobs Message-ID: In-Reply-To: On Fri, Feb 20, 2026 at 12:19 AM Patrick Steinhardt wrote: > > On Fri, Feb 20, 2026 at 01:59:43AM +0000, Elijah Newren via GitGitGadget wrote: > > diff --git a/diff.c b/diff.c > > index 35b903a9a0..91d81f66ad 100644 > > --- a/diff.c > > +++ b/diff.c > > @@ -7176,7 +7176,7 @@ void diffcore_std(struct diff_options *options) > > * If no prefetching occurs, diffcore_rename() will prefetch if it > > * decides that it needs inexact rename detection. > > */ > > - if (options->repo == the_repository && repo_has_promisor_remote(the_repository) && > > + if (repo_has_promisor_remote(the_repository) && > > I wonder though -- shouldn't we also pass `options->repo` to > `repo_has_promisor_remote()` now? Otherwise we may support backfill > fetches from arbitrary repositories, but we'll only do them in case the > main repository has a promisor remote. Doh. Definitely yes. Amid having this patch originally be last and rebasing and whatnot, I didn't look closely enough and missed that. Will fix all the callsites and resubmit.