Function: majutsu-split-execute

majutsu-split-execute is an interactive and natively compiled function defined in majutsu-split.el.

Signature

(majutsu-split-execute ARG1)

Documentation

Execute split with selections recorded in the transient.

Key Bindings

This command is not in any keymaps.

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-split.el
(transient-define-suffix majutsu-split-execute (args)
  "Execute split with selections recorded in the transient."
  :description "Execute split"
  :class 'majutsu-transient-default-action-suffix
  (interactive (list (transient-args 'majutsu-split)))
  (pcase-let* ((`(,args ,filesets) (majutsu-filesets-split-transient-value args))
               ;; Text hunks and hunkless files coexist in one operation.
               (plan (majutsu-interactive-build-replay-plan-if-selected))
               (patch-source
                (and plan (majutsu-split--diff-source-revision)))
               (args (if plan
                         (majutsu-split--remove-interactive-tool-args args)
                       args)))
    (if plan
        (progn
          (majutsu-split--check-patch-source args patch-source)
          ;; Reset to the left tree, then replay precisely the selections.
          (majutsu-interactive-run-replay-plan "split" args filesets plan)
          (majutsu-interactive-clear))
      (majutsu-run-jj-with-editor
       (cons "split" (majutsu-jj-append-filesets args filesets))))))