author | Kristian Høgsberg <krh@redhat.com> | |
Tue, 18 Sep 2007 00:06:44 +0000 (20:06 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 27 Sep 2007 08:19:42 +0000 (01:19 -0700) | ||
commit | 586801650824f0f7b62c34a206b6a60ffbcd8be0 | |
tree | f9d474878042914e343bdcee2b78012c6e9e9fbd | tree | snapshot |
parent | a17ba31b0b75365e1245e494d46abae4afc57480 | commit | diff |
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>
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>
builtin-add.c | diff | blob | history | |
commit.h | diff | blob | history |