|
|
|
@ -516,7 +516,7 @@ int cmd_ls_files(int argc, const char **argv, const char *cmd_prefix)
@@ -516,7 +516,7 @@ int cmd_ls_files(int argc, const char **argv, const char *cmd_prefix)
|
|
|
|
|
|
|
|
|
|
/* Treat unmatching pathspec elements as errors */ |
|
|
|
|
if (pathspec.nr && error_unmatch) |
|
|
|
|
ps_matched = xcalloc(1, pathspec.nr); |
|
|
|
|
ps_matched = xcalloc(pathspec.nr, 1); |
|
|
|
|
|
|
|
|
|
if ((dir.flags & DIR_SHOW_IGNORED) && !exc_given) |
|
|
|
|
die("ls-files --ignored needs some exclude pattern"); |
|
|
|
|