]> git.ipfire.org Git - thirdparty/git.git/commit
editor: do not rely on `the_repository` for interactive edits
authorPatrick Steinhardt <ps@pks.im>
Tue, 13 Aug 2024 09:13:25 +0000 (11:13 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 13 Aug 2024 17:01:00 +0000 (10:01 -0700)
commit419dbb29d82b78bcaf0ff22ac7d5db7d1c327575
tree43c8322954e0ad8da0e2e60fd3e692ede6c89b92
parent61419a42f641c7b9f7bfc9585e3ec9c393ab0166
editor: do not rely on `the_repository` for interactive edits

We implicitly rely on `the_repository` when editing a file interactively
because we call `git_path()`. Adapt the function to instead take a
`struct repository` as a parameter so that we can remove this hidden
dependency.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
add-patch.c
editor.c
editor.h