aboutsummaryrefslogtreecommitdiff
path: root/Documentation/git-ls-files.txt
diff options
context:
space:
mode:
authorPetr Baudis <pasky@suse.cz>2006-03-26 16:59:52 +0200
committerJunio C Hamano <junkio@cox.net>2006-03-26 19:08:24 -0800
commitb0a3de42316a4e8f1d561cbe12b7bb282631a0d6 (patch)
tree627ae686f4f33521153436c28bb4a775c2b25a19 /Documentation/git-ls-files.txt
parent8978d043c35ad068e280dbbdc31e06524ea0ab56 (diff)
downloadgit-b0a3de42316a4e8f1d561cbe12b7bb282631a0d6.tar.gz
git-b0a3de42316a4e8f1d561cbe12b7bb282631a0d6.tar.xz
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 <pasky@suse.cz>
Diffstat (limited to 'Documentation/git-ls-files.txt')
-rw-r--r--Documentation/git-ls-files.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/git-ls-files.txt b/Documentation/git-ls-files.txt
index e813f8420..980c5c918 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)