From: Derrick Stolee Date: Mon, 03 Aug 2020 17:43:09 GMT Subject: Re: [PATCH v3 13/20] maintenance: auto-size incremental-repack batch Message-ID: In-Reply-To: On 7/30/2020 7:36 PM, Chris Torek wrote: > On Thu, Jul 30, 2020 at 3:26 PM Derrick Stolee via GitGitGadget > wrote: >> diff --git a/builtin/gc.c b/builtin/gc.c >> index 99ab1f5e9d..d94eb3e6ad 100644 >> --- a/builtin/gc.c >> +++ b/builtin/gc.c >> @@ -988,6 +988,46 @@ static int multi_pack_index_expire(void) >> return 0; >> } >> >> +#define TWO_GIGABYTES (0x7FFF) > > You meant (0x7FFFFFFF) here, right? Ugh. Of course. Thanks for being diligent here. I hadn't pulled this branch into microsoft/git for testing with Scalar yet, where I would have noticed this. I'm tempted to create an EXPENSIVE test that actually checks this condition. Let's see what I can do. Thanks, -Stolee