From: Karthik Nayak Date: Mon, 09 Mar 2026 10:37:34 GMT Subject: Re: [GSOC][PATCH 2/2] editor: remove the_repository usage Message-ID: In-Reply-To: <20260301105228.1738388-3-shreyanshpaliwalcmsmn@gmail.com> Shreyansh Paliwal writes: > git_sequence_editor() reads sequence.editor using the_repository. Pass > struct repository through the callers instead of relying on the global > state. It is called from, > > * builtin/var.c: Mostly the_repository is used in all the functions and > there is no proper local access to a repository, so pass the_repository. > > * editor.c: The caller is inside launch_sequence_editor() function which is > called from rebase-interactive.c:edit_todo_list(), which does have a > local repository instance, so pass it down the caller. > > With no remaining global states in editor.c remove '#define > USE_THE_REPOSITORY_VARIABLE'. This removes another dependency on > the_repository and keeps editor code consistent with the ongoing effort to > reduce global state. > Well explained, the patch looks good to me.