diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2025-01-27 11:17:52 +0100 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2025-01-27 11:17:52 +0100 |
| commit | bdbd8eb7678aabac3036cd9d3b908342f2580956 (patch) | |
| tree | 6d4b45b8d19cc54e799fba32270d660874eb50b3 /lisp/magit-git.el | |
| parent | e9de48ba0f4ab628dd6b9e18337d51a436db15fe (diff) | |
magit-untracked-files: Remove COMPACT argument again
It was added in [1: 581979b555], so that `magit-insert-untracked-files'
didn't have to do it. But this is not the appropriate place to handle
this special case.
This commit does not change back `magit-insert-untracked-files' to take
care of this performance tweaks itself. Dealing with performance issues
is left to subsequent commits.
1: 2024-06-24 581979b555b06be71f2ee5beeb558ecf1416ab4b
magit-untracked-files: Optionally return compact list
Diffstat (limited to 'lisp/magit-git.el')
| -rw-r--r-- | lisp/magit-git.el | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/lisp/magit-git.el b/lisp/magit-git.el index 64c4070..8a55ce2 100644 --- a/lisp/magit-git.el +++ b/lisp/magit-git.el @@ -1048,16 +1048,10 @@ tracked file." (defun magit-tracked-files () (magit-list-files "--cached")) -(defun magit-untracked-files (&optional all files compact) - (if compact - (--mapcat (and (eq (aref it 0) ??) - (list (substring it 3))) - (magit-git-items "status" "-z" "--porcelain" - (magit-ignore-submodules-p t) - "--" files)) - (magit-list-files "--other" - (and (not all) "--exclude-standard") - "--" files))) +(defun magit-untracked-files (&optional all files) + (magit-list-files "--other" + (and (not all) "--exclude-standard") + "--" files)) (defun magit-modified-files (&optional nomodules files) (magit-git-items "diff-index" "-z" "--name-only" |
