Function: vc--read-branch-to-log

vc--read-branch-to-log is a byte-compiled function defined in vc.el.gz.

Signature

(vc--read-branch-to-log &optional FILESET)

Documentation

Read the name of a branch to log.

FILESET, if non-nil, means to pass the current VC fileset to vc-read-revision.

Source Code

;; Defined in /usr/src/emacs/lisp/vc/vc.el.gz
(defun vc--read-branch-to-log (&optional fileset)
  "Read the name of a branch to log.
FILESET, if non-nil, means to pass the current VC fileset to
`vc-read-revision'."
  (let* ((fileset (and fileset (vc-deduce-fileset t)))
         (branch (vc-read-revision "Branch to log: "
                                   (cadr fileset) (car fileset))))
    (when (string-empty-p branch)
      (user-error "No branch specified"))
    branch))