Function: magit-blame--pre-blame-assert

magit-blame--pre-blame-assert is a byte-compiled function defined in magit-blame.el.

Signature

(magit-blame--pre-blame-assert TYPE)

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260822.1158/magit-blame.el
(defun magit-blame--pre-blame-assert (type)
  (unless (magit-toplevel)
    (magit--not-inside-repository-error))
  (cond ((and magit-blame-mode
              (eq type magit-blame-type))
         (if-let ((chunk (magit-current-blame-chunk)))
             (unless (oref chunk prev-rev)
               (user-error "Chunk has no further history"))
           (message "Still blaming, commit data not available yet")))
        ((not (magit-file-relative-name nil (not magit-buffer-file-name)))
         (if buffer-file-name
             (user-error "Buffer isn't visiting a tracked file")
           (user-error "Buffer isn't visiting a file")))))