Browse Source

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>
maint
Alexandre Julliard 17 years ago committed by Junio C Hamano
parent
commit
21a2d69b2a
  1. 2
      contrib/emacs/git.el

2
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) (defun git-run-ls-files-with-excludes (status files default-state &rest options)
"Run git-ls-files on FILES with appropriate --exclude-from options." "Run git-ls-files on FILES with appropriate --exclude-from options."
(let ((exclude-files (git-get-exclude-files))) (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) (concat "--exclude-per-directory=" git-per-dir-ignore-file)
(append options (mapcar (lambda (f) (concat "--exclude-from=" f)) exclude-files))))) (append options (mapcar (lambda (f) (concat "--exclude-from=" f)) exclude-files)))))



Loading…
Cancel
Save