Variable: magit-format-file-function
magit-format-file-function is a customizable variable defined in
magit-diff.el.
Value
magit-format-file-default
Documentation
Function used to format lines representing a file.
This function is used for file headings in diffs, in diffstats and for
lists of files (such as the untracked files). Depending on the caller,
it receives either three or five arguments; the signature has to be
(kind file face &optional status orig). KIND is one of diff,
module, stat and list.
This variable was added, or its default value changed, in magit version 4.3.1.
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-diff.el
(defcustom magit-format-file-function #'magit-format-file-default
"Function used to format lines representing a file.
This function is used for file headings in diffs, in diffstats and for
lists of files (such as the untracked files). Depending on the caller,
it receives either three or five arguments; the signature has to be
\(kind file face &optional status orig). KIND is one of `diff',
`module', `stat' and `list'."
:package-version '(magit . "4.3.1")
:group 'magit-diff
:type `(radio (function-item ,#'magit-format-file-default)
(function-item ,#'magit-format-file-all-the-icons)
(function-item ,#'magit-format-file-nerd-icons)
function))