Function: majutsu-duplicate-arguments

majutsu-duplicate-arguments is a natively compiled function defined in majutsu-duplicate.el.

Signature

(majutsu-duplicate-arguments)

Documentation

Return the current duplicate arguments.

If inside the transient, return transient args. Otherwise, if no -r is set, add -r from point (or region values, or @).

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-duplicate.el
;;; Duplicate

(defun majutsu-duplicate-arguments ()
  "Return the current duplicate arguments.
If inside the transient, return transient args.
Otherwise, if no -r is set, add -r from point (or region values, or @)."
  (let ((args (if (eq transient-current-command 'majutsu-duplicate)
                  (transient-args 'majutsu-duplicate)
                '())))
    (unless (transient-arg-value "-r=" args)
      (let ((revsets (or (majutsu-revisions-at-point) '("@"))))
        (dolist (rev revsets)
          (push (concat "-r=" rev) args))))
    args))