Skip to content

Commit

Permalink
magit-stage-files: add FILES argument
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Dec 15, 2015
1 parent 918fb4d commit 4b97801
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lisp/magit-git.el
Expand Up @@ -474,10 +474,10 @@ tracked file."
(magit-git-items "diff-files" "-z" "--name-only"
(and nomodules "--ignore-submodules")))

(defun magit-staged-files (&optional nomodules)
(defun magit-staged-files (&optional nomodules files)
(magit-git-items "diff-index" "-z" "--name-only" "--cached"
(and nomodules "--ignore-submodules")
(magit-headish)))
(magit-headish) "--" files))

(defun magit-staged-binary-files ()
(--mapcat (and (string-match "^-\t-\t\\(.+\\)" it)
Expand Down

0 comments on commit 4b97801

Please sign in to comment.