On Wed, May 14, 2025 at 08:33:25PM +0000, Elijah Newren via GitGitGadget wrote: > From: Elijah Newren <newren@xxxxxxxxx> > > Replace the_repository everywhere with repo, feed repo from cmd_replay() > to all the other functions in the file that need it, and remove the > UNUSED annotation on repo. > > Signed-off-by: Elijah Newren <newren@xxxxxxxxx> > --- > replay: replace the_repository with repo parameter passed to cmd_replay > > The point of this patch is not to remove USE_THE_REPOSITORY_VARIABLE; I > can't yet because DEFAULT_ABBREV and get_commit_output_encoding() both > require it and have no current alternatives. However, I still think it's > worthwhile to stop using the_repository everywhere while ignoring the > repo parameter explicitly passed in. That looks kinda ugly, and since > I'm poking around in replay right now, I don't want to push > the_repository in even more places when we have the appropriate value > available -- especially since that might make my local work conflict > should someone else come along and try to clean this up. Makes sense. Especially the first one is something I have encountered as a frequent blocker for removing `USE_THE_REPOSITORY_VARIABLE`. I guess it would be nice to tackle it sooner rather than later. Cc'd Ayush, as he will be working on the global state reduction project as part of GSoC. Patrick