about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2008-02-06 17:10:43 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2008-02-06 17:10:43 +0100
commit2a6f8343eed0166f6a94ba202835d20aa78af8ea (patch)
tree9b652a2052b8bf81126370adec371431499ed915
parentd33c6048a5fa39bf6240e819116240b51135ef4e (diff)
downloadgitsum-2a6f8343eed0166f6a94ba202835d20aa78af8ea.tar.gz
gitsum-2a6f8343eed0166f6a94ba202835d20aa78af8ea.tar.xz
gitsum-2a6f8343eed0166f6a94ba202835d20aa78af8ea.zip
Make gitsum-push async
-rw-r--r--gitsum.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/gitsum.el b/gitsum.el
index d19210c..6d25242 100644
--- a/gitsum.el
+++ b/gitsum.el
@@ -97,7 +97,10 @@ A numeric argument serves as a repeat count."
   "Push the current repository."
   (interactive)
   (let ((args (read-string "Shell command: " "git push ")))
-    (shell-command args)))
+    (let ((buffer (get-buffer-create " *gitsum-push*")))
+      (switch-to-buffer buffer)
+      (insert "Running " args "...\n\n")
+      (start-process-shell-command "gitsum-push" buffer args))))
 
 (defun gitsum-revert ()
   "Revert the active patches in the working directory."