Skip to content

Commit

Permalink
magit-unstaged-files: new function
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Dec 15, 2015
1 parent 4b97801 commit 65867b5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lisp/magit-git.el
Expand Up @@ -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)))
Expand Down

0 comments on commit 65867b5

Please sign in to comment.