Re: [PATCH v2 00/10] Change midx.c and midx-write.c to not use global variables
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 21, 2024, 02:19 UTC
- Message-ID
- <xmqqh681fhve.fsf@gitster.g>
- In-Reply-To
- <20241119-374-refactor-midx-c-and-midx-write-c-to-not-depend-on-global-state-v2-0-e2f607174efc@gmail.com>
Karthik Nayak <karthik.188@gmail.com> writes:
Show 6 quoted lines
> Since the `packfile.c` cleanup is still in flight, this series is based > on top of master: b31fb630c0 (Merge https://github.com/j6t/git-gui, > 2024-11-11) with those patches merged in. This applies cleanly on top > of next, but conflicts with `bf/set-head-symref` in seen, the conflict > is mostly straight forward. I'll merge the topic in if it is merged into > next soon.
I think set_head() part is fairly trivial. But there seems to be a much bigger conflicts with the incremental midx topic.
I actually do not understand offhand why doing anything to the midx layer needs to change the calling convention of set_head() or many other things that are unrelated to what midx layer does, and that do *not* use the new parameter *anyway*. Shouldn't the "subsubcommand can inherit the repository from the builtin subcommand implementation" be split out as a separate topic, which the midx thing later builds on?
Thanks.