Function: majutsu-restore-dwim
majutsu-restore-dwim is an interactive and natively compiled function
defined in majutsu-restore.el.
Signature
(majutsu-restore-dwim)
Documentation
Restore working copy from parent (discard all changes).
In diff buffer on a file section, restore only that file.
Key Bindings
This command is not in any keymaps.
Source Code
;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-restore.el
;;;###autoload
(defun majutsu-restore-dwim ()
"Restore working copy from parent (discard all changes).
In diff buffer on a file section, restore only that file."
(interactive)
(let ((file (majutsu-file-at-point)))
(if file
(when (yes-or-no-p (format "Discard changes to %s? " file))
(majutsu-run-jj "restore" (majutsu-jj-fileset-quote file)))
(when (yes-or-no-p "Discard all working copy changes? ")
(majutsu-run-jj "restore")))))