author | Petr Baudis <pasky@suse.cz> | |
Sun, 26 Mar 2006 14:59:52 +0000 (16:59 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 27 Mar 2006 03:08:24 +0000 (19:08 -0800) | ||
commit | b0a3de42316a4e8f1d561cbe12b7bb282631a0d6 | |
tree | 627ae686f4f33521153436c28bb4a775c2b25a19 | tree | snapshot |
parent | 8978d043c35ad068e280dbbdc31e06524ea0ab56 | commit | 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 <pasky@suse.cz>
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>
Documentation/git-ls-files.txt | diff | blob | history | |
ls-files.c | diff | blob | history |