Function: magit-format-file-default

magit-format-file-default is a byte-compiled function defined in magit-diff.el.

Signature

(magit-format-file-default KIND FILE FACE &optional STATUS ORIG)

Documentation

Show only the Git status and the filename.

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-diff.el
(defun magit-format-file-default (_kind file face &optional status orig)
  "Show only the Git status and the filename."
  (propertize (concat (and status (format "%-11s" status))
                      (if orig (format "%s -> %s" orig file) file))
              'font-lock-face face))