summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorThomas Rast <trast@student.ethz.ch>2009-08-13 14:29:41 +0200
committerJunio C Hamano <gitster@pobox.com>2009-08-14 12:40:09 -0700
commit46b5139cae7306194a39fdaf5c6abc12ab531c84 (patch)
treef313f08b787c92002fad44d10ca8a8d6f7b55bf8 /commit.h
parentb319ef70a94731a5c6f18d07a49d5dda3f06f5d3 (diff)
downloadgit-46b5139cae7306194a39fdaf5c6abc12ab531c84.tar.gz
builtin-add: refactor the meat of interactive_add()
This moves the call setup for 'git add--interactive' to a separate function, as other users will call it without running validate_pathspec() first. Signed-off-by: Thomas Rast <trast@student.ethz.ch> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.h')
-rw-r--r--commit.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/commit.h b/commit.h
index ba9f63813e..339f1f6f04 100644
--- a/commit.h
+++ b/commit.h
@@ -137,6 +137,8 @@ int is_descendant_of(struct commit *, struct commit_list *);
int in_merge_bases(struct commit *, struct commit **, int);
extern int interactive_add(int argc, const char **argv, const char *prefix);
+extern int run_add_interactive(const char *revision, const char *patch_mode,
+ const char **pathspec);
static inline int single_parent(struct commit *commit)
{