]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin-add.c
Add script for importing bits-and-pieces to Git.
[thirdparty/git.git] / builtin-add.c
index 581a2a17480cc0ffa47a942ff58da4499aeac41d..006fd08769dcf01c20b0c23dd7cf6c4aae931c68 100644 (file)
@@ -105,8 +105,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 ? REFRESH_SAY_CHANGED : REFRESH_QUIET,
-                     pathspec, seen);
+       refresh_index(&the_index, verbose ? REFRESH_IN_PORCELAIN : REFRESH_QUIET,
+                     pathspec, seen, "Unstaged changes after refreshing the index:");
        for (i = 0; i < specs; i++) {
                if (!seen[i])
                        die("pathspec '%s' did not match any files", pathspec[i]);