Function: log-view-delete-revisions-from-end
log-view-delete-revisions-from-end is an interactive and byte-compiled
function defined in log-view.el.gz.
Signature
(log-view-delete-revisions-from-end &optional DISCARD)
Documentation
Delete revisions newer than the revision at point.
The revision at point must be on the current branch. The newer revisions are deleted from the revision history and the changes made by those revisions to files in the working tree are undone. If the are uncommitted changes, prompts to discard them. With a prefix argument (when called from Lisp, with optional argument DISCARD non-nil), discard any uncommitted changes without prompting.
To delete revisions from the revision history without undoing the
changes in the working tree, see log-edit-uncommit-revisions-from-end.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/vc/log-view.el.gz
(defun log-view-delete-revisions-from-end (&optional discard)
"Delete revisions newer than the revision at point.
The revision at point must be on the current branch. The newer
revisions are deleted from the revision history and the changes made by
those revisions to files in the working tree are undone.
If the are uncommitted changes, prompts to discard them.
With a prefix argument (when called from Lisp, with optional argument
DISCARD non-nil), discard any uncommitted changes without prompting.
To delete revisions from the revision history without undoing the
changes in the working tree, see `log-edit-uncommit-revisions-from-end'."
(interactive "P")
(vc--remove-revisions-from-end (log-view-current-tag)
(if discard 'discard t)
t log-view-vc-backend)
(revert-buffer))