Code

Replace the word 'update-cache' by 'update-index' everywhere
[git.git] / builtin-add.c
index 850e1c23e545e8f84e5a72ea7a7bdd1a99746938..4fc9d6f7ccdd7b989d75ae6e24df997c4deb3505 100644 (file)
@@ -117,7 +117,7 @@ static void update(int verbose, const char *prefix, const char **files)
        rev.diffopt.format_callback_data = &verbose;
        if (read_cache() < 0)
                die("index file corrupt");
-       run_diff_files(&rev, 0);
+       run_diff_files(&rev, DIFF_RACY_IS_MODIFIED);
 }
 
 static void refresh(int verbose, const char **pathspec)