Function: vc-git-show-log-entry

vc-git-show-log-entry is a byte-compiled function defined in vc-git.el.gz.

Signature

(vc-git-show-log-entry REVISION)

Documentation

Move to the log entry for REVISION.

REVISION may have the form BRANCH, BRANCH~N, or BRANCH^ (where "^" can be repeated).

Source Code

;; Defined in /usr/src/emacs/lisp/vc/vc-git.el.gz
(defun vc-git-show-log-entry (revision)
  "Move to the log entry for REVISION.
REVISION may have the form BRANCH, BRANCH~N,
or BRANCH^ (where \"^\" can be repeated)."
  (goto-char (point-min))
  (prog1
      (when revision
        (search-forward
         (format "\ncommit %s" revision) nil t
         (cond ((string-match "~\\([0-9]\\)\\'" revision)
                (1+ (string-to-number (match-string 1 revision))))
               ((string-match "\\^+\\'" revision)
                (1+ (length (match-string 0 revision))))
               (t nil))))
    (beginning-of-line)))