Function: vc-uncommit-revisions-from-end

vc-uncommit-revisions-from-end is an autoloaded, interactive and byte-compiled function defined in vc.el.gz.

Signature

(vc-uncommit-revisions-from-end REV &optional BACKEND)

Documentation

Delete revisions newer than REV without touching the working tree.

REV must be on the current branch. The newer revisions are deleted from the revision history but the changes made by those revisions to files in the working tree are not undone. When called interactively, prompts for REV. BACKEND is the VC backend.

To delete revisions from the revision history and also undo the changes in the working tree, see vc-delete-revisions-from-end.

View in manual

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/vc/vc.el.gz
;;;###autoload
(defun vc-uncommit-revisions-from-end (rev &optional backend)
  "Delete revisions newer than REV without touching the working tree.
REV must be on the current branch.  The newer revisions are deleted from
the revision history but the changes made by those revisions to files in
the working tree are not undone.
When called interactively, prompts for REV.
BACKEND is the VC backend.

To delete revisions from the revision history and also undo the changes
in the working tree, see `vc-delete-revisions-from-end'."
  (interactive (list
                (vc-read-revision "Uncommit revisions newer than revision: ")))
  (vc--remove-revisions-from-end rev nil nil backend))