Function: emacs-repository-branch-android

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

Signature

(emacs-repository-branch-android)

Documentation

Return the Emacs repository branch Emacs was built from.

Value is nil if Emacs was not built from a repository checkout. Use information from the /assets/version special file.

Source Code

;; Defined in /usr/src/emacs/lisp/version.el.gz
(defun emacs-repository-branch-android ()
  "Return the Emacs repository branch Emacs was built from.
Value is nil if Emacs was not built from a repository checkout.
Use information from the `/assets/version' special file."
  (with-temp-buffer
    (insert-file-contents "/assets/version")
    (end-of-line)
    (forward-char)
    (let ((string (buffer-substring (point) (line-end-position))))
      (and (not (equal string "Unknown")) string))))