diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-05-21 12:04:34 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-05-21 12:04:41 -0700 |
commit | 38ed1d89f759699de56004b08668e1764613f47b (patch) | |
tree | 40001e7853adba4204423a49ab9fb131df322b1c /builtin-commit.c | |
parent | 377d9c409ffe0f0d994b929aeb94716139207b9d (diff) | |
download | git-38ed1d89f759699de56004b08668e1764613f47b.tar.gz |
"git-add -n -u" should not add but just report
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-commit.c')
-rw-r--r-- | builtin-commit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-commit.c b/builtin-commit.c index 0baec6db6a..924fca1953 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)) |