aboutsummaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2007-09-17 20:06:44 -0400
committerJunio C Hamano <gitster@pobox.com>2007-09-27 01:19:42 -0700
commit586801650824f0f7b62c34a206b6a60ffbcd8be0 (patch)
treef9d474878042914e343bdcee2b78012c6e9e9fbd /commit.h
parenta17ba31b0b75365e1245e494d46abae4afc57480 (diff)
downloadgit-586801650824f0f7b62c34a206b6a60ffbcd8be0.tar.gz
git-586801650824f0f7b62c34a206b6a60ffbcd8be0.tar.xz
Introduce entry point add_interactive and add_files_to_cache
This refactors builtin-add.c a little to provide a unique entry point for launching git add --interactive, which will be used by builtin-commit too. If we later want to make add --interactive a builtin or change how it is launched, we just start from this function. It also exports the private function update() which is used to add all modified paths to the index as add_files_to_cache(). Signed-off-by: Kristian Høgsberg <krh@redhat.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.h')
-rw-r--r--commit.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/commit.h b/commit.h
index b779de8cb..b50c30e25 100644
--- a/commit.h
+++ b/commit.h
@@ -128,4 +128,8 @@ extern struct commit_list *get_shallow_commits(struct object_array *heads,
int depth, int shallow_flag, int not_shallow_flag);
int in_merge_bases(struct commit *, struct commit **, int);
+
+extern int interactive_add(void);
+extern void add_files_to_cache(int verbose, const char *prefix, const char **files);
+
#endif /* COMMIT_H */