aboutsummaryrefslogtreecommitdiff
path: root/builtin-commit.c
diff options
context:
space:
mode:
authorAlex Riesen <raa.lkml@gmail.com>2008-05-12 19:58:10 +0200
committerJunio C Hamano <gitster@pobox.com>2008-05-12 20:54:52 -0700
commit7ae02a30e817eda16ea362c6304b6ae28c3a7644 (patch)
tree7c9f5faeebe018996079425e9c898f41457ea24c /builtin-commit.c
parent960b8ad1b1824b1b82c2b09a000c2119f97633a0 (diff)
downloadgit-7ae02a30e817eda16ea362c6304b6ae28c3a7644.tar.gz
git-7ae02a30e817eda16ea362c6304b6ae28c3a7644.tar.xz
Extend interface of add_files_to_cache to allow ignore indexing errors
Signed-off-by: Alex Riesen <raa.lkml@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-commit.c')
-rw-r--r--builtin-commit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-commit.c b/builtin-commit.c
index ae29d35d7..6a2f5c3d9 100644
--- a/builtin-commit.c
+++ b/builtin-commit.c
@@ -246,7 +246,7 @@ static char *prepare_index(int argc, const char **argv, const char *prefix)
*/
if (all || (also && pathspec && *pathspec)) {
int fd = hold_locked_index(&index_lock, 1);
- add_files_to_cache(0, also ? prefix : NULL, pathspec);
+ add_files_to_cache(also ? prefix : NULL, pathspec, 0);
refresh_cache(REFRESH_QUIET);
if (write_cache(fd, active_cache, active_nr) ||
close_lock_file(&index_lock))