Function: magit--blob-buffer-name

magit--blob-buffer-name is a byte-compiled function defined in magit-files.el.

Signature

(magit--blob-buffer-name OBJ FILE &optional VOLATILE RELATIVE)

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260822.1158/magit-files.el
(defun magit--blob-buffer-name (obj file &optional volatile relative)
  (format "%s%s.~%s~"
          (if volatile " " "")
          (or (if relative (file-relative-name file (magit-toplevel)) file)
              (and (magit-blob-p obj) "{blob}"))
          (subst-char-in-string ?/ ?_ obj)))