Function: majutsu-diffedit-run
majutsu-diffedit-run is a natively compiled function defined in
majutsu-diffedit.el.
Signature
(majutsu-diffedit-run ARGS FILE DIFF-EDITOR)
Documentation
Run jj diffedit with option ARGS, FILE and DIFF-EDITOR config.
DIFF-EDITOR may be a config string, or a function called with the normalized repository-relative file path.
Source Code
;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-diffedit.el
(defun majutsu-diffedit-run (args file diff-editor)
"Run jj diffedit with option ARGS, FILE and DIFF-EDITOR config.
DIFF-EDITOR may be a config string, or a function called with the normalized
repository-relative file path."
(unless file
(user-error "Diffedit requires a file target"))
(let* ((root (majutsu--toplevel-safe default-directory))
(default-directory root)
(file (majutsu-diffedit--normalize-file file root))
(diff-editor-cmd (if (functionp diff-editor)
(funcall diff-editor file)
diff-editor))
(fileset (majutsu-jj-fileset-quote file))
(jj-args (majutsu-jj-append-filesets args (list fileset))))
(apply #'majutsu-run-jj-async "diffedit" "--config" diff-editor-cmd jj-args)))