diff options
author | Kristian Høgsberg <krh@redhat.com> | 2007-09-17 20:06:44 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-09-27 01:19:42 -0700 |
commit | 586801650824f0f7b62c34a206b6a60ffbcd8be0 (patch) | |
tree | f9d474878042914e343bdcee2b78012c6e9e9fbd /commit.h | |
parent | a17ba31b0b75365e1245e494d46abae4afc57480 (diff) | |
download | git-586801650824f0f7b62c34a206b6a60ffbcd8be0.tar.gz |
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.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 */ |