Variable: magit-cygwin-mount-points
magit-cygwin-mount-points is a customizable variable defined in
magit-git.el.
Value
nil
Documentation
Alist of (CYGWIN . WIN32) directory names.
Sorted from longest to shortest CYGWIN name.
This variable was added, or its default value changed, in magit version 2.3.0.
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-git.el
(defcustom magit-cygwin-mount-points
(and (eq system-type 'windows-nt)
(cl-sort (mapcar
(lambda (mount)
(if (string-match "^\\(.*\\) on \\(.*\\) type" mount)
(cons (file-name-as-directory (match-str 2 mount))
(file-name-as-directory (match-str 1 mount)))
(lwarn '(magit) :error
"Failed to parse Cygwin mount: %S" mount)))
;; If --exec-path is not a native Windows path,
;; then we probably have a cygwin git.
(and-let ((dirs (magit--early-process-lines
magit-git-executable "--exec-path")))
(and (not (string-match-p "\\`[a-zA-Z]:" (car dirs)))
(magit--early-process-lines "mount"))))
#'> :key (pcase-lambda (`(,cyg . ,_win)) (length cyg))))
"Alist of (CYGWIN . WIN32) directory names.
Sorted from longest to shortest CYGWIN name."
:package-version '(magit . "2.3.0")
:group 'magit-process
:type '(alist :key-type string :value-type directory))