Function: log-view-delete-revisions

log-view-delete-revisions is an interactive and byte-compiled function defined in log-view.el.gz.

Signature

(log-view-delete-revisions DIRECTORY)

Documentation

Delete the revision at point from the revision history.

When revisions are marked, delete all of them. When called interactively, prompts for the target working tree in which to delete revisions; the current working tree is the default choice. When called from Lisp, DIRECTORY is the root of the target working tree.

This works only for unpublished commits, unless you have customized vc-allow-rewriting-published-history to a non-nil value.

This is the same as log-view-revert-or-delete-revisions invoked interactively with a prefix argument. See also vc-delete-revision.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/vc/log-view.el.gz
(defun log-view-delete-revisions (directory)
  "Delete the revision at point from the revision history.
When revisions are marked, delete all of them.
When called interactively, prompts for the target working tree in which
to delete revisions; the current working tree is the default choice.
When called from Lisp, DIRECTORY is the root of the target working tree.

This works only for unpublished commits, unless you have customized
`vc-allow-rewriting-published-history' to a non-nil value.

This is the same as `log-view-revert-or-delete-revisions' invoked
interactively with a prefix argument.  See also `vc-delete-revision'."
  (interactive (list (vc--prompt-other-working-tree
                      (vc-responsible-backend default-directory)
                      "Delete in working tree"
                      'allow-empty)))
  (log-view--pick-or-revert directory nil t nil t))