Function: vc-git-symbolic-commit
vc-git-symbolic-commit is a byte-compiled function defined in
vc-git.el.gz.
Signature
(vc-git-symbolic-commit COMMIT)
Documentation
Translate COMMIT string into symbolic form.
Returns nil if not possible.
Source Code
;; Defined in /usr/src/emacs/lisp/vc/vc-git.el.gz
(defun vc-git-symbolic-commit (commit)
"Translate COMMIT string into symbolic form.
Returns nil if not possible."
(and commit
(let ((name (with-temp-buffer
(and
(vc-git--out-ok "name-rev" "--name-only" commit)
(goto-char (point-min))
(= (forward-line 2) 1)
(bolp)
(buffer-substring-no-properties (point-min)
(1- (point-max)))))))
(and name (not (string= name "undefined")) name))))