Function: magit--blob-buffer-name

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

Signature

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

Source Code

;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/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)))