Function: magit-process--format-arguments
magit-process--format-arguments is a natively compiled function
defined in magit-process.el.
Signature
(magit-process--format-arguments PROGRAM ARGS)
Source Code
;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/magit-process.el
(defun magit-process--format-arguments (program args)
(cond
((and args (equal program (magit-git-executable)))
(pcase-let ((`(,global ,local)
(magit-process-git-arguments--split program args)))
(concat
(propertize (file-name-nondirectory program)
'font-lock-face 'magit-section-heading)
" "
(propertize (magit--ellipsis)
'font-lock-face 'magit-section-heading
'help-echo (string-join global " "))
" "
(propertize (mapconcat #'shell-quote-argument local " ")
'font-lock-face 'magit-section-heading))))
((and args (equal program shell-file-name))
(propertize (cadr args)
'font-lock-face 'magit-section-heading))
((concat (propertize (file-name-nondirectory program)
'font-lock-face 'magit-section-heading)
" "
(propertize (mapconcat #'shell-quote-argument args " ")
'font-lock-face 'magit-section-heading)))))