Re: [PATCH 00/11] Clarify API for dir.[ch] and unpack-trees.[ch] -- mark relevant fields as internal
- From
Elijah Newren <newren@gmail.com>
- Date
- Feb 23, 2023, 20:35 UTC
- Message-ID
- <CABPp-BGu8DKBcKCxLnBMBbPvo+DdFyad_iqTt1sbyRSm5tKH5Q@mail.gmail.com>
- In-Reply-To
- <73d694c5-f2d9-c05b-c880-8d5650f36797@github.com>
On Thu, Feb 23, 2023 at 7:26 AM Derrick Stolee <derrickstolee@github.com> wrote:
Show 27 quoted lines
> > On 2/23/2023 10:18 AM, Derrick Stolee wrote: > > On 2/23/2023 4:14 AM, Elijah Newren via GitGitGadget wrote: > >> This patch is primarily about moving internal-only fields within these two > >> structs into an embedded internal struct. Patch breakdown: > >> > >> * Patches 1-3: Restructuring dir_struct > >> * Patch 1: Splitting off internal-use-only fields > >> * Patch 2: Add important usage note to avoid accidentally using > >> deprecated API > >> * Patch 3: Mark output-only fields as such > >> * Patches 4-11: Restructuring unpack_trees_options > >> * Patches 4-6: Preparatory cleanup > >> * Patches 7-10: Splitting off internal-use-only fields > >> * Patch 11: Mark output-only field as such > ... > > The best news is that your existing series makes it easier to flip > > to the internal pointer method in the future, since we can shift > > the 'd->internal.member" uses into "d->internal->member" in a > > mechanical way. Thus, the change you are proposing does not lock us > > into this approach if we change our minds later. > > And now that I've read the series in its entirety, I think it is > well organized and does not need any updates. It creates a better > situation than what we already have, and any changes to split the > internal structs to be anonymous to callers can be done as a > follow-up.
Wow, I was a bit worried pushing a couple dozen patches last night that it'd be weeks before anyone took a look, and perhaps even that I'd again get comments that I was pushing too many to the list. You read and reviewed all of them across both series, including some comments showing you read pretty carefully, all before I had even woken up. Very cool; thanks.