Skip to content

Commit

Permalink
git.el: Do not display empty directories.
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre Julliard <[email protected]>
Tested-by: Karl Hasselström <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
julliard authored and gitster committed Feb 27, 2008
1 parent 3d0a936 commit 21a2d69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/emacs/git.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)))))

Expand Down

0 comments on commit 21a2d69

Please sign in to comment.