Function: magit-rev-ancestor-p

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

Signature

(magit-rev-ancestor-p A B)

Documentation

Return non-nil if commit A is an ancestor of commit B.

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-git.el
(defun magit-rev-ancestor-p (a b)
  "Return non-nil if commit A is an ancestor of commit B."
  (magit-git-success "merge-base" "--is-ancestor" a b))