Function: majutsu-interactive--build-tool-config
majutsu-interactive--build-tool-config is a natively compiled function
defined in majutsu-interactive.el.
Signature
(majutsu-interactive--build-tool-config PATCH-FILE PLAN DIRECTORY)
Documentation
Build jj --config arguments for applypatch PLAN with PATCH-FILE.
Write the helper script in DIRECTORY.
Source Code
;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-interactive.el
(defun majutsu-interactive--build-tool-config (patch-file plan directory)
"Build jj --config arguments for applypatch PLAN with PATCH-FILE.
Write the helper script in DIRECTORY."
(let* ((script (majutsu-interactive--write-applypatch-script plan directory))
(script-path (majutsu-convert-filename-for-jj script))
(patch-path (majutsu-convert-filename-for-jj patch-file)))
(list
"--config" (format "merge-tools.majutsu-applypatch.program=%s"
(shell-quote-argument script-path))
"--config" (format "merge-tools.majutsu-applypatch.edit-args=[\"$left\",\"$right\",%s]"
(prin1-to-string patch-path)))))