Function: magit-rev-diff-count
magit-rev-diff-count is a byte-compiled function defined in
magit-git.el.
Signature
(magit-rev-diff-count A B &optional FIRST-PARENT)
Documentation
Return the commits in A but not B and vice versa.
Return a list of two integers: (A>B B>A).
If first-parent is set, traverse only first parents.
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-git.el
(defun magit-rev-diff-count (a b &optional first-parent)
"Return the commits in A but not B and vice versa.
Return a list of two integers: (A>B B>A).
If `first-parent' is set, traverse only first parents."
(mapcar #'string-to-number
(split-string (magit-git-string "rev-list"
"--count" "--left-right"
(and first-parent "--first-parent")
(concat a "..." b))
"\t")))