Function: vc-git-working-branch

vc-git-working-branch is a byte-compiled function defined in vc-git.el.gz.

Signature

(vc-git-working-branch)

Documentation

Return the name of the current branch, or nil if HEAD is detached.

Source Code

;; Defined in /usr/src/emacs/lisp/vc/vc-git.el.gz
(defun vc-git-working-branch ()
  "Return the name of the current branch, or nil if HEAD is detached."
  (vc-git--out-match '("symbolic-ref" "HEAD")
                     "^\\(refs/heads/\\)?\\(.+\\)$" 2))