Function: magit-auto-revert-buffer-p

magit-auto-revert-buffer-p is a natively compiled function defined in magit-autorevert.el.

Signature

(magit-auto-revert-buffer-p BUFFER)

Documentation

Return non-nil if BUFFER visits a file inside the current repository.

The current repository is the one containing default-directory. If there is no current repository, then return t for any BUFFER.

Source Code

;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/magit-autorevert.el
(defun magit-auto-revert-buffer-p (buffer)
  "Return non-nil if BUFFER visits a file inside the current repository.
The current repository is the one containing `default-directory'.
If there is no current repository, then return t for any BUFFER."
  (magit-auto-revert-repository-buffer-p buffer t))