summaryrefslogtreecommitdiff
path: root/contrib/emacs
diff options
context:
space:
mode:
authorAlexandre Julliard <julliard@winehq.org>2008-02-22 16:48:53 +0100
committerJunio C Hamano <gitster@pobox.com>2008-02-27 13:17:58 -0800
commit21a2d69b2a14f1b42b18cfd18ff0477bb97eb11f (patch)
tree259b6641a02ff87eaba58bbb2c84ac260bbd7a36 /contrib/emacs
parent3d0a936f63f2f894b3986d96cdd8f2baae96150c (diff)
downloadgit-21a2d69b2a14f1b42b18cfd18ff0477bb97eb11f.tar.gz
git.el: Do not display empty directories.
Signed-off-by: Alexandre Julliard <julliard@winehq.org> Tested-by: Karl Hasselström <kha@treskal.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/emacs')
-rw-r--r--contrib/emacs/git.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/emacs/git.el b/contrib/emacs/git.el
index f69b697f8d..cc21e9c682 100644
--- a/contrib/emacs/git.el
+++ b/contrib/emacs/git.el
@@ -728,7 +728,7 @@ Return the list of files that haven't been handled."
(defun git-run-ls-files-with-excludes (status files default-state &rest options)
"Run git-ls-files on FILES with appropriate --exclude-from options."
(let ((exclude-files (git-get-exclude-files)))
- (apply #'git-run-ls-files status files default-state "--directory"
+ (apply #'git-run-ls-files status files default-state "--directory" "--no-empty-directory"
(concat "--exclude-per-directory=" git-per-dir-ignore-file)
(append options (mapcar (lambda (f) (concat "--exclude-from=" f)) exclude-files)))))