]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin-mv.c
"git-add -n -u" should not add but just report
[thirdparty/git.git] / builtin-mv.c
index 94f6dd2aad2da512bab0be2e84859eced6553cc9..df9ea97744f0473f1ee4a7c7c8e78a87ccb22865 100644 (file)
@@ -256,7 +256,7 @@ int cmd_mv(int argc, const char **argv, const char *prefix)
 
                for (i = 0; i < added.nr; i++) {
                        const char *path = added.items[i].path;
-                       add_file_to_cache(path, verbose);
+                       add_file_to_cache(path, verbose ? ADD_CACHE_VERBOSE : 0);
                }
 
                for (i = 0; i < deleted.nr; i++)