Function: emacs-repository-get-branch

emacs-repository-get-branch is a byte-compiled function defined in version.el.gz.

Signature

(emacs-repository-get-branch &optional DIR)

Documentation

Try to return as a string the repository branch of the Emacs sources.

The format of the returned string is dependent on the VCS in use. Value is nil if the sources do not seem to be under version control, or if we could not determine the branch. Note that this reports on the current state of the sources, which may not correspond to the running Emacs.

Optional argument DIR is a directory to use instead of source-directory.

Source Code

;; Defined in /usr/src/emacs/lisp/version.el.gz
(defun emacs-repository-get-branch (&optional dir)
  "Try to return as a string the repository branch of the Emacs sources.
The format of the returned string is dependent on the VCS in use.
Value is nil if the sources do not seem to be under version
control, or if we could not determine the branch.  Note that
this reports on the current state of the sources, which may not
correspond to the running Emacs.

Optional argument DIR is a directory to use instead of `source-directory'."
  (emacs-repository-branch-git (or dir source-directory)))