Skip to content

Commit 21a2d69

Browse files
julliardgitster
authored andcommitted
git.el: Do not display empty directories.
Signed-off-by: Alexandre Julliard <[email protected]> Tested-by: Karl Hasselström <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3d0a936 commit 21a2d69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/emacs/git.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ Return the list of files that haven't been handled."
728728
(defun git-run-ls-files-with-excludes (status files default-state &rest options)
729729
"Run git-ls-files on FILES with appropriate --exclude-from options."
730730
(let ((exclude-files (git-get-exclude-files)))
731-
(apply #'git-run-ls-files status files default-state "--directory"
731+
(apply #'git-run-ls-files status files default-state "--directory" "--no-empty-directory"
732732
(concat "--exclude-per-directory=" git-per-dir-ignore-file)
733733
(append options (mapcar (lambda (f) (concat "--exclude-from=" f)) exclude-files)))))
734734

0 commit comments

Comments
 (0)