Function: magit-rev-diff-count
magit-rev-diff-count is a natively 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 /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/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")))