Closed caadar closed 7 years ago
There actually already is some code that is supposed to make that happen, but it cannot possibly work as intended. But I think displaying the git output is a good idea and will try to implement this properly.
I decided to do this:
Pulling Epkg database...
message.It would be possible to display the git output using something like the following - but that is quite a hack.
diff --git a/epkg.el b/epkg.el
index 1310255..616a182 100644
--- a/epkg.el
+++ b/epkg.el
@@ -130,7 +130,14 @@ (declare-function magit-call-git "magit-process" (&rest args))
(defun epkg--call-git (&rest args)
(if (require 'magit nil t)
- (magit-call-git args)
+ (progn
+ (magit-run-git-async args)
+ (condition-case nil
+ (while (and magit-this-process
+ (eq (process-status magit-this-process) 'run))
+ (sleep-for 0.05)
+ (redisplay t))
+ (quit (kill-process magit-this-process))))
(with-current-buffer (generate-new-buffer " *Epkg-Git*")
(switch-to-buffer-other-window (current-buffer))
(apply #'call-process "git" nil t t args))))
Consider to show some info about actions (including git output?) and result status in echo area.