branch: elpa/magit
commit ed711da6133c21b43a8541c331bdc1847524a379
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>
magit-ignored-files: Use magit-list-files
Also move it next to the closely related `magit-untracked-files'.
---
lisp/magit-git.el | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/lisp/magit-git.el b/lisp/magit-git.el
index 0924e20000b..ebbd3cfb9b4 100644
--- a/lisp/magit-git.el
+++ b/lisp/magit-git.el
@@ -1053,6 +1053,9 @@ tracked file."
(and (not all) "--exclude-standard")
"--" files))
+(defun magit-ignored-files ()
+ (magit-list-files "--others" "--ignored" "--exclude-standard" "--directory"))
+
(defun magit-modified-files (&optional nomodules files)
(magit-git-items "diff-index" "-z" "--name-only"
;; Work around a bug in Git v2.46.0. See #5212 and #5221.
@@ -1081,10 +1084,6 @@ tracked file."
(defun magit-unmerged-files ()
(magit-git-items "diff-files" "-z" "--name-only" "--diff-filter=U"))
-(defun magit-ignored-files ()
- (magit-git-items "ls-files" "-z" "--full-name" "--others" "--ignored"
- "--exclude-standard" "--directory"))
-
(defun magit-stashed-files (stash)
(magit-git-items "stash" "show" "-z" "--name-only" stash))