Function: majutsu-absorb-arguments

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

Signature

(majutsu-absorb-arguments)

Documentation

Return the current absorb arguments.

If inside the transient, return transient args. Otherwise, if no --from/--into is set and point is on a jj-commit section, add --from from that section.

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-absorb.el
(defun majutsu-absorb-arguments ()
  "Return the current absorb arguments.
If inside the transient, return transient args.
Otherwise, if no --from/--into is set and point is on a
jj-commit section, add --from from that section."
  (let ((args (if (eq transient-current-command 'majutsu-absorb)
                  (transient-args 'majutsu-absorb)
                '())))
    (unless (or (transient-arg-value "--from=" args)
                (transient-arg-value "--into=" args))
      (when-let* ((rev (magit-section-value-if 'jj-commit)))
        (push (concat "--from=" rev) args)))
    args))