branch: elpa/magit
commit 66b9d8e365c55d6a61041a396d69b013c5a84aa2
Author: Jonas Bernoulli <jo...@bernoul.li>
Commit: Jonas Bernoulli <jo...@bernoul.li>

    magit-ignored-files: No longer use --directory by default
---
 lisp/magit-git.el    | 4 ++--
 lisp/magit-status.el | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lisp/magit-git.el b/lisp/magit-git.el
index ebbd3cfb9b4..ecce961a5ae 100644
--- a/lisp/magit-git.el
+++ b/lisp/magit-git.el
@@ -1053,8 +1053,8 @@ tracked file."
                     (and (not all) "--exclude-standard")
                     "--" files))
 
-(defun magit-ignored-files ()
-  (magit-list-files "--others" "--ignored" "--exclude-standard" "--directory"))
+(defun magit-ignored-files (&rest args)
+  (magit-list-files "--others" "--ignored" "--exclude-standard"))
 
 (defun magit-modified-files (&optional nomodules files)
   (magit-git-items "diff-index" "-z" "--name-only"
diff --git a/lisp/magit-status.el b/lisp/magit-status.el
index c3e0683ced8..78ed6250f22 100644
--- a/lisp/magit-status.el
+++ b/lisp/magit-status.el
@@ -792,7 +792,7 @@ value of that variable can be set using \"D -- DIRECTORY 
RET g\"."
 If the first element of `magit-buffer-diff-files' is a
 directory, then limit the list to files below that.  The value
 of that variable can be set using \"D -- DIRECTORY RET g\"."
-  (magit-insert-files 'ignored #'magit-ignored-files))
+  (magit-insert-files 'ignored (lambda () (magit-ignored-files 
"--directory"))))
 
 (defun magit-insert-skip-worktree-files ()
   "Insert a tree of skip-worktree files.

Reply via email to