Function: magit-revert-no-commit

magit-revert-no-commit is an interactive and natively compiled function defined in magit-sequence.el.

Signature

(magit-revert-no-commit COMMIT &optional ARGS)

Documentation

Revert COMMIT by applying it in reverse to the worktree.

Prompt for a commit, defaulting to the commit at point. If the region selects multiple commits, then revert all of them, without prompting.

Key Bindings

magit-mode-map v

Source Code

;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/magit-sequence.el
;;;###autoload
(defun magit-revert-no-commit (commit &optional args)
  "Revert COMMIT by applying it in reverse to the worktree.
Prompt for a commit, defaulting to the commit at point.  If
the region selects multiple commits, then revert all of them,
without prompting."
  (interactive (magit-revert-read-args "Revert changes"))
  (magit--cherry-pick commit (cons "--no-commit" args) t))