Explicitly add the default "git pull" behaviour to .git/config on clone
[gitweb.git] / builtin-ls-files.c
index ad8c41e7310032c7a868ecb6a87e542af799c361..bc79ce40fc87b7a77d22f2fea85f2198102fcb67 100644 (file)
@@ -487,10 +487,14 @@ int cmd_ls_files(int argc, const char **argv, const char *prefix)
                for (num = 0; pathspec[num]; num++) {
                        if (ps_matched[num])
                                continue;
-                       error("pathspec '%s' did not match any.",
+                       error("pathspec '%s' did not match any file(s) known to git.",
                              pathspec[num] + prefix_offset);
                        errors++;
                }
+
+               if (errors)
+                       fprintf(stderr, "Did you forget to 'git add'?\n");
+
                return errors ? 1 : 0;
        }