Re: [PATCH v2 00/10] Change midx.c and midx-write.c to not use global variables
- From
Taylor Blau <me@ttaylorr.com>
- Date
- Nov 20, 2024, 22:24 UTC
- Message-ID
- <Zz5hgZ1DM9XRdXqj@nand.local>
- In-Reply-To
- <CAP8UFD08qQ2hm98dKfMNEABs19Bbs_O6T6EMLpHOofQ9=A_WpQ@mail.gmail.com>
On Wed, Nov 20, 2024 at 07:20:33PM +0100, Christian Couder wrote:
Show 19 quoted lines
> On Tue, Nov 19, 2024 at 4:38 PM Karthik Nayak <karthik.188@gmail.com> wrote: > > > > Similar to the earlier patch series on cleaning up packfile.c and > > removing usage of global variables [1], we change the midx.c and > > midx-write.c files to no longer use global variables. > > > > This is done by the following: > > - Usage of repository variable already available in existing structs. > > - Passing down repository variable from other subsystems. > > - Modifying all subcommands to obtain repository variable from the > > command in `builtins/` and passing down the variable from there. > > > > The biggest change is in the first commit, wherein we modify all > > subcommands to add the repository variable. Since the subcommand > > definition are not often changed, it shouldn't cause too many conflicts > > with in flight topics. > > Overall I like the way it's done. I found a few improvements that > could be made to some commit messages though.
Same here!
Thanks, Taylor