stgit.el: Run "git rm" with "-q" to reduce spam
authorGustav Hållberg <gustav@virtutech.com>
Sat, 1 Aug 2009 21:21:13 +0000 (23:21 +0200)
committerGustav Hållberg <gustav@virtutech.com>
Mon, 3 Aug 2009 13:59:08 +0000 (15:59 +0200)
Signed-off-by: Gustav Hållberg <gustav@virtutech.com>
contrib/stgit.el

index 97a6d13..65fe68a 100644 (file)
@@ -878,9 +878,9 @@ If PATCHSYM is a keyword, returns PATCHSYM unmodified."
 
 (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"