1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00

New command alias vc-restore

* lisp/vc/vc.el (vc-restore): New alias.
* etc/NEWS: Announce it.
This commit is contained in:
Sean Whitton 2025-11-22 12:45:55 +00:00
parent 46d0f1fef1
commit 748c3b2645
2 changed files with 6 additions and 0 deletions

View file

@ -2566,6 +2566,9 @@ View mode, copies to the kill ring the ID of the revision at point in
the log entry. If there are marked revisions, it copies the IDs of the log entry. If there are marked revisions, it copies the IDs of
those, instead. those, instead.
---
*** New command alias 'vc-restore' for 'vc-revert'.
** Package ** Package
+++ +++

View file

@ -4087,6 +4087,9 @@ to the working revision (except for keyword expansion)."
(quit-windows-on diff-buffer (eq vc-revert-show-diff 'kill)))) (quit-windows-on diff-buffer (eq vc-revert-show-diff 'kill))))
(vc-revert-files backend files))) (vc-revert-files backend files)))
;;;###autoload
(defalias 'vc-restore #'vc-revert)
;;;###autoload ;;;###autoload
(defun vc-pull (&optional arg) (defun vc-pull (&optional arg)
"Update the current fileset or branch. "Update the current fileset or branch.