Function: magit--read-mergetool
magit--read-mergetool is a byte-compiled function defined in
magit-extras.el.
Signature
(magit--read-mergetool PROMPT INITIAL-INPUT HISTORY)
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-extras.el
(defun magit--read-mergetool (prompt _initial-input history)
(let ((choices nil)
(lines (cdr (magit-git-lines "mergetool" "--tool-help"))))
(while (string-prefix-p "\t\t" (car lines))
(push (substring (pop lines) 2) choices))
(setq choices (nreverse choices))
(magit-completing-read (or prompt "Select mergetool")
choices nil t nil history)))