Function: majutsu-restore--selector

majutsu-restore--selector is a natively compiled function defined in majutsu-restore.el.

Signature

(majutsu-restore--selector ARGS)

Documentation

Return Restore selector canonicalized from ARGS.

The selector is either (:changes-in REV) or (:from FROM :to TO). Missing --from/--to default to @, matching jj restore/diff.

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-restore.el
(defun majutsu-restore--selector (args)
  "Return Restore selector canonicalized from ARGS.
The selector is either (:changes-in REV) or (:from FROM :to TO).
Missing --from/--to default to @, matching jj restore/diff."
  (let ((changes-in (transient-arg-value "--changes-in=" args))
        (from (transient-arg-value "--from=" args))
        (to (transient-arg-value "--to=" args)))
    (cond
     (changes-in (list :changes-in changes-in))
     ((or from to) (list :from (or from "@") :to (or to "@")))
     (t (list :changes-in "@")))))