Function: vc--count-outgoing
vc--count-outgoing is a byte-compiled function defined in vc.el.gz.
Signature
(vc--count-outgoing BACKEND)
Documentation
Return number of changes that will be sent with a vc-push.
Source Code
;; Defined in /usr/src/emacs/lisp/vc/vc.el.gz
(defun vc--count-outgoing (backend)
"Return number of changes that will be sent with a `vc-push'."
(with-temp-buffer
(let ((display-buffer-overriding-action
'(display-buffer-no-window (allow-no-window . t))))
(vc-incoming-outgoing-internal backend nil
(current-buffer) 'log-outgoing))
(let ((proc (get-buffer-process (current-buffer))))
(while (accept-process-output proc)))
(how-many log-view-message-re)))