From b0a3de42316a4e8f1d561cbe12b7bb282631a0d6 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Sun, 26 Mar 2006 16:59:52 +0200 Subject: Optionally do not list empty directories in git-ls-files --others Without the --directory flag, git-ls-files wouldn't ever list directories, producing no output for empty directories, which is good since they cannot be added and they bear no content, even untracked one (if Git ever starts tracking directories on their own, this should obviously change since the content notion will change). With the --directory flag however, git-ls-files would list even empty directories. This may be good in some situations but sometimes you want to prevent that. This patch adds a --no-empty-directory option which makes git-ls-files omit empty directories. Signed-off-by: Petr Baudis --- Documentation/git-ls-files.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Documentation/git-ls-files.txt') diff --git a/Documentation/git-ls-files.txt b/Documentation/git-ls-files.txt index e813f84202..980c5c9186 100644 --- a/Documentation/git-ls-files.txt +++ b/Documentation/git-ls-files.txt @@ -52,6 +52,9 @@ OPTIONS If a whole directory is classified as "other", show just its name (with a trailing slash) and not its whole contents. +--no-empty-directory:: + Do not list empty directories. Has no effect without --directory. + -u|--unmerged:: Show unmerged files in the output (forces --stage) -- cgit v1.2.1