Files
git/add-interactive.h
Junio C Hamano ab23986069 add -i: hide init/clear_add_i_state() functions
The "add -i" machinery is encapsulated in run_add_i() function,
which uses init_add_i_state() to initialize the machinery, does its
thing, and clear_add_i_state() to tear it down.  External callers
have no need to call anything other than run_add_i(), starting at
d51b61f5da (add-patch: remove dependency on "add-interactive"
subsystem, 2026-03-02), which refactored the code paths involved.

Make init/clear_add_i_state() file-scope static functions, and
"struct add_i_state" type as well.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
2026-11-03 07:25:57 -08:00

13 lines
227 B
C

#ifndef ADD_INTERACTIVE_H
#define ADD_INTERACTIVE_H
#include "add-patch.h"
struct pathspec;
struct repository;
int run_add_i(struct repository *r, const struct pathspec *ps,
struct interactive_options *opts);
#endif