X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/blobdiff_plain/fd9fe574300d88c34a22d5bb7b4c31106b777b03..5115dea02ba6a90485f2a0d7b77e90a01f0d00a5:/contrib/stgit.el diff --git a/contrib/stgit.el b/contrib/stgit.el index 97a6d13..65fe68a 100644 --- a/contrib/stgit.el +++ b/contrib/stgit.el @@ -878,9 +878,9 @@ (defun stgit-show () (defun stgit-move-change-to-index (file) "Copies the workspace state of FILE to index, using git add or git rm" - (let ((op (if (file-exists-p file) "add" "rm"))) + (let ((op (if (file-exists-p file) '("add") '("rm" "-q")))) (stgit-capture-output "*git output*" - (stgit-run-git op "--" file)))) + (apply 'stgit-run-git (append op '("--") (list file)))))) (defun stgit-remove-change-from-index (file) "Unstages the change in FILE from the index"