Function: magit-rev-author-p

magit-rev-author-p is a byte-compiled function defined in magit-git.el.

Signature

(magit-rev-author-p REV)

Documentation

Return t if the user is the author of REV.

More precisely return t if user.name is equal to the author name of REV and/or user.email is equal to the author email of REV.

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-git.el
(defun magit-rev-author-p (rev)
  "Return t if the user is the author of REV.
More precisely return t if `user.name' is equal to the author
name of REV and/or `user.email' is equal to the author email
of REV."
  (or (equal (magit-get "user.name")  (magit-rev-format "%an" rev))
      (equal (magit-get "user.email") (magit-rev-format "%ae" rev))))