diff options
Diffstat (limited to 'builtin-add.c')
-rw-r--r-- | builtin-add.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin-add.c b/builtin-add.c index 6f5672a616..fc3f96eaef 100644 --- a/builtin-add.c +++ b/builtin-add.c @@ -140,7 +140,8 @@ static void refresh(int verbose, const char **pathspec) for (specs = 0; pathspec[specs]; specs++) /* nothing */; seen = xcalloc(specs, 1); - refresh_index(&the_index, verbose ? 0 : REFRESH_QUIET, pathspec, seen); + refresh_index(&the_index, verbose ? REFRESH_SAY_CHANGED : REFRESH_QUIET, + pathspec, seen); for (i = 0; i < specs; i++) { if (!seen[i]) die("pathspec '%s' did not match any files", pathspec[i]); |