aboutsummaryrefslogtreecommitdiffstats
path: root/commit.h
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2023-02-06 23:58:57 +0100
committerJunio C Hamano <gitster@pobox.com>2023-02-06 15:03:34 -0800
commitd21878f073043b9205f5049f1cd53560d67b9f3f (patch)
tree05b1a3acbedfe9d03218501d5a9bc4acede8d9b2 /commit.h
parent20b813d7d3dc576aa58de22da2450b49116945bf (diff)
downloadgit-d21878f073043b9205f5049f1cd53560d67b9f3f.tar.gz
add API: remove run_add_interactive() wrapper function
Now that the Perl "git-add--interactive" has gone away in the preceding commit we don't need to pass along our desire for a mode as a string, and can instead directly use the "enum add_p_mode", see d2a233cb8b9 (built-in add -p: prepare for patch modes other than "stage", 2019-12-21) for its introduction. As a result of that the run_add_interactive() function would become a trivial wrapper which would only run run_add_i() if a 0 (or now, "NULL") "patch_mode" was provided. Let's instead remove it, and have the one callsite that wanted the "NULL" case (interactive_add()) handle it. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.h')
-rw-r--r--commit.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/commit.h b/commit.h
index fa39202fa6..cc2c5da7bd 100644
--- a/commit.h
+++ b/commit.h
@@ -274,8 +274,6 @@ struct ref;
int for_each_commit_graft(each_commit_graft_fn, void *);
int interactive_add(const char **argv, const char *prefix, int patch);
-int run_add_interactive(const char *revision, const char *patch_mode,
- const struct pathspec *pathspec);
struct commit_extra_header {
struct commit_extra_header *next;