]> git.eshelyaron.com Git - emacs.git/commit
Add a new command vc-pull-and-push
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 24 Sep 2022 13:17:23 +0000 (15:17 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 24 Sep 2022 13:19:03 +0000 (15:19 +0200)
commit8dacd8cd914fdbe0f6f17ca57915611d48e9124d
tree287c2bf8dd3d837962cbf09e0281be76a4454943
parent3ce322efef3c57b83d0f243c6f0d4f560d50fe7a
Add a new command vc-pull-and-push

* lisp/vc/vc-svn.el (vc-exec-after):
* lisp/vc/vc-hg.el (vc-exec-after):
* lisp/vc/vc-git.el (vc-exec-after):
* lisp/vc/vc-cvs.el (vc-exec-after):
* lisp/vc/vc-bzr.el (vc-exec-after):
* lisp/org/org-macro.el (vc-exec-after):
* lisp/obsolete/vc-mtn.el (vc-exec-after):
* lisp/obsolete/vc-arch.el (vc-exec-after): Update declaration.
* lisp/vc/vc-dispatcher.el (vc--process-sentinel): Allow running
code only on success.
(vc-exec-after): Ditto.
(vc--inhibit-change-window-start): New variable.
(vc-do-async-command): Use it to allow chaining commands without
moving window point.  Return the process instead of the buffer,
since the process may have exited already, and then we can't get
at the process.

* lisp/vc/vc-git.el (vc-git--pushpull): Return the process object.
(vc-git-pull-and-push): New function.

* lisp/vc/vc.el (vc-pull-and-push): New command (bug#51964).
etc/NEWS
lisp/obsolete/vc-arch.el
lisp/obsolete/vc-mtn.el
lisp/org/org-macro.el
lisp/vc/vc-bzr.el
lisp/vc/vc-cvs.el
lisp/vc/vc-dispatcher.el
lisp/vc/vc-git.el
lisp/vc/vc-hg.el
lisp/vc/vc-svn.el
lisp/vc/vc.el