aboutsummaryrefslogtreecommitdiff
path: root/lisp/magit-git.el
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2025-01-27 11:17:58 +0100
committerJonas Bernoulli <jonas@bernoul.li>2025-01-27 11:17:58 +0100
commit2063435bace1fa69dbafe666a07994755f8ed01e (patch)
tree4f62dd710c918c56da460e9b31607b8d878b7ff9 /lisp/magit-git.el
parent66b9d8e365c55d6a61041a396d69b013c5a84aa2 (diff)
magit-*-files: Somewhat increase signature consistency
Even after this, the consistency between the signatures of these functions is still low. But it is a step in the right direction, without looking us in too much, making it even harder to achieve full consistency in the future.
Diffstat (limited to 'lisp/magit-git.el')
-rw-r--r--lisp/magit-git.el18
1 files changed, 9 insertions, 9 deletions
diff --git a/lisp/magit-git.el b/lisp/magit-git.el
index ecce961..6ff7229 100644
--- a/lisp/magit-git.el
+++ b/lisp/magit-git.el
@@ -1045,16 +1045,16 @@ tracked file."
(defun magit-list-files (&rest args)
(apply #'magit-git-items "ls-files" "-z" "--full-name" args))
-(defun magit-tracked-files ()
- (magit-list-files "--cached"))
+(defun magit-tracked-files (&rest args)
+ (magit-list-files "--cached" args))
-(defun magit-untracked-files (&optional all files)
- (magit-list-files "--other"
+(defun magit-untracked-files (&optional all files &rest args)
+ (magit-list-files "--other" args
(and (not all) "--exclude-standard")
"--" files))
(defun magit-ignored-files (&rest args)
- (magit-list-files "--others" "--ignored" "--exclude-standard"))
+ (magit-list-files "--others" "--ignored" "--exclude-standard" args))
(defun magit-modified-files (&optional nomodules files)
(magit-git-items "diff-index" "-z" "--name-only"
@@ -1087,15 +1087,15 @@ tracked file."
(defun magit-stashed-files (stash)
(magit-git-items "stash" "show" "-z" "--name-only" stash))
-(defun magit-skip-worktree-files ()
+(defun magit-skip-worktree-files (&rest args)
(--keep (and (= (aref it 0) ?S)
(substring it 2))
- (magit-list-files "-t")))
+ (magit-list-files "-t" args)))
-(defun magit-assume-unchanged-files ()
+(defun magit-assume-unchanged-files (&rest args)
(--keep (and (memq (aref it 0) '(?h ?s ?m ?r ?c ?k))
(substring it 2))
- (magit-list-files "-v")))
+ (magit-list-files "-v" args)))
(defun magit-revision-files (rev)
(magit-with-toplevel