From: Alexandre Julliard Date: Fri, 22 Feb 2008 15:48:53 +0000 (+0100) Subject: git.el: Do not display empty directories. X-Git-Tag: v1.5.5-rc0~130 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=21a2d69b2a14f1b42b18cfd18ff0477bb97eb11f;p=git.git git.el: Do not display empty directories. Signed-off-by: Alexandre Julliard Tested-by: Karl Hasselström Signed-off-by: Junio C Hamano --- diff --git a/contrib/emacs/git.el b/contrib/emacs/git.el index f69b697f8..cc21e9c68 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)))))