add a test for git-send-email for non-threaded mails
[gitweb.git] / builtin-ls-files.c
index 1742c0f80d0167b84f1615fb8c6c93ad87e95938..da2daf45acd2154b7f00da34d41a5ab8acaf0c38 100644 (file)
@@ -454,8 +454,8 @@ int cmd_ls_files(int argc, const char **argv, const char *prefix)
                OPT_BIT(0, "directory", &dir.flags,
                        "show 'other' directories' name only",
                        DIR_SHOW_OTHER_DIRECTORIES),
-               OPT_BIT(0, "empty-directory", &dir.flags,
-                       "list empty directories",
+               OPT_BIT(0, "no-empty-directory", &dir.flags,
+                       "don't show empty directories",
                        DIR_HIDE_EMPTY_DIRECTORIES),
                OPT_BOOLEAN('u', "unmerged", &show_unmerged,
                        "show unmerged files in the output"),
@@ -496,7 +496,7 @@ int cmd_ls_files(int argc, const char **argv, const char *prefix)
                tag_other = "? ";
                tag_killed = "K ";
        }
-       if (show_modified || show_others || (dir.flags & DIR_SHOW_IGNORED) || show_killed)
+       if (show_modified || show_others || show_deleted || (dir.flags & DIR_SHOW_IGNORED) || show_killed)
                require_work_tree = 1;
        if (show_unmerged)
                /*
@@ -512,7 +512,7 @@ int cmd_ls_files(int argc, const char **argv, const char *prefix)
 
        pathspec = get_pathspec(prefix, argv);
 
-       /* be nice with submodule patsh ending in a slash */
+       /* be nice with submodule paths ending in a slash */
        read_cache();
        if (pathspec)
                strip_trailing_slash_from_submodules();