path: root/Documentation
diff options
authorPetr Baudis <>2006-03-26 14:59:52 (GMT)
committerJunio C Hamano <>2006-03-27 03:08:24 (GMT)
commitb0a3de42316a4e8f1d561cbe12b7bb282631a0d6 (patch)
tree627ae686f4f33521153436c28bb4a775c2b25a19 /Documentation
parent8978d043c35ad068e280dbbdc31e06524ea0ab56 (diff)
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 <>
Diffstat (limited to 'Documentation')
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/git-ls-files.txt b/Documentation/git-ls-files.txt
index e813f84..980c5c9 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.
+ Do not list empty directories. Has no effect without --directory.
Show unmerged files in the output (forces --stage)