Function: majutsu-op-restore-execute
majutsu-op-restore-execute is an interactive and natively compiled
function defined in majutsu-op.el.
Signature
(majutsu-op-restore-execute ARGS)
Documentation
Execute jj op restore with transient ARGS.
Key Bindings
This command is not in any keymaps.
Source Code
;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-op.el
(defun majutsu-op-restore-execute (args)
"Execute jj op restore with transient ARGS."
(interactive (list (transient-args 'majutsu-op-restore-transient)))
(pcase-let* ((`(,operation . ,rest) (majutsu-op--extract-target-operation args)))
(unless operation
(user-error "Please select an operation first"))
(majutsu-op--run-confirmed
'op-restore
(format "Restore repository state to operation %s? " operation)
(append '("op" "restore") rest (list operation)))))