Function: magit-process-file

magit-process-file is a byte-compiled function defined in magit-process.el.

Signature

(magit-process-file PROCESS &optional INFILE BUFFER DISPLAY &rest ARGS)

Documentation

Process files synchronously in a separate process.

Return the exit code. Similar to process-file but temporarily enable Cygwin's "noglob" option during the call and ensure unix eol conversion.

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-process.el
(defun magit-process-file (process &optional infile buffer display &rest args)
  "Process files synchronously in a separate process.
Return the exit code.  Similar to `process-file' but temporarily
enable Cygwin's \"noglob\" option during the call and ensure unix
eol conversion."
  (when magit-process-record-invocations
    (let ((messages-buffer-name magit-process-record-buffer-name)
          (inhibit-message t))
      (message "%s"
               (format-spec
                (format-time-string magit-process-record-entry-format)
                `((?d . ,(abbreviate-file-name default-directory))
                  (?a . ,(magit-process--format-arguments process args)))))))
  (let ((process-environment (magit-process-environment))
        (default-process-coding-system (magit--process-coding-system)))
    (apply #'process-file process infile buffer display args)))