Function: vc-git--assert-revision-on-branch
vc-git--assert-revision-on-branch is a byte-compiled function defined
in vc-git.el.gz.
Signature
(vc-git--assert-revision-on-branch REV BRANCH)
Documentation
Signal an error unless REV is on BRANCH.
Source Code
;; Defined in /usr/src/emacs/lisp/vc/vc-git.el.gz
(defun vc-git--assert-revision-on-branch (rev branch)
"Signal an error unless REV is on BRANCH."
;; 'git branch --contains' is a porcelain command whose output could
;; change in the future.
(unless (zerop (vc-git-command nil 1 nil "merge-base"
"--is-ancestor" rev branch))
(error "Revision %s does not exist on branch %s" rev branch)))