Commit 65867b5d authored by Jonas Bernoulli's avatar Jonas Bernoulli

magit-unstaged-files: new function

parent 4b978016
......@@ -479,6 +479,11 @@ tracked file."
(and nomodules "--ignore-submodules")
(magit-headish) "--" files))
(defun magit-unstaged-files (&optional nomodules files)
(magit-git-items "diff-index" "-z" "--name-only"
(and nomodules "--ignore-submodules")
(magit-headish) "--" files))
(defun magit-staged-binary-files ()
(--mapcat (and (string-match "^-\t-\t\\(.+\\)" it)
(list (match-string 1 it)))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment