Re: [PATCH 06/16] upload-pack: generalize commit date cutoff
- From
Stefan Beller <sbeller@google.com>
- Date
- Jul 16, 2018, 19:38 UTC
- Message-ID
- <CAGZ79kZVyd1BgWGW85PxF_4Skv4pEB=a5iH_1i=5B6X07cfyoA@mail.gmail.com>
- In-Reply-To
- <74b7352b580ae920d9d5f206b9389e207aada4fe.1531746010.git.gitgitgadget@gmail.com>
On Mon, Jul 16, 2018 at 6:00 AM Derrick Stolee via GitGitGadget <gitgitgadget@gmail.com> wrote:
Show 7 quoted lines
> > From: Derrick Stolee <dstolee@microsoft.com> > > The ok_to_give_up() method uses the commit date as a cutoff to avoid > walking the entire reachble set of commits. Before moving the > reachable() method to commit-reach.c, pull out the dependence on the > global constant 'oldest_have' with a 'min_commit_date' parameter.
'oldest_have' seems to be used in only one method after that (function got_oid); but as that function is called many times we either have to make it a function-global or pass around as a parameter, we'll defer that to later.
Code (of all previous patches and this one) look good! Thanks, Stefan