]> Kevux Git Server - rit/commit
add-patch: remove dependency on "add-interactive" subsystem
authorPatrick Steinhardt <ps@pks.im>
Mon, 2 Mar 2026 12:13:07 +0000 (13:13 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 3 Mar 2026 23:09:35 +0000 (15:09 -0800)
commitd51b61f5dab9c8e715fa792f31d572bc96fb5687
tree7701cdad0be779bc40067a38d2f7769f5b30ecfc
parente3d4d7787cc3b2f0281e808042ceaa08e05c281b
add-patch: remove dependency on "add-interactive" subsystem

With the preceding commit we have split out interactive configuration
that is used by both "git add -p" and "git add -i". But we still
initialize that configuration in the "add -p" subsystem by calling
`init_add_i_state()`, even though we only do so to initialize the
interactive configuration as well as a repository pointer.

Stop doing so and instead store and initialize the interactive
configuration in `struct add_p_state` directly.

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