Cleanly unstage file deletions.

* magit.el (magit-unstage-item): Use "-q" to shut up git reset when
unstaging a deletion.  Otherwise it would complain about local
changes.
This commit is contained in:
Marius Vollmer 2008-09-07 16:45:46 +03:00
parent 0721a4c951
commit 6b839c8df0

View file

@ -1161,7 +1161,7 @@ Please see the manual for a complete description of Magit.
((staged diff hunk)
(magit-apply-hunk-item item "--cached" "--reverse"))
((staged diff)
(magit-run "git" "reset" "HEAD" (magit-diff-item-file item)))
(magit-run "git" "reset" "-q" "HEAD" "--" (magit-diff-item-file item)))
((unstaged *)
(error "Already unstaged"))
((hunk)