Function: magit--painted-branch-at-point

magit--painted-branch-at-point is a byte-compiled function defined in magit-git.el.

Signature

(magit--painted-branch-at-point &optional TYPE)

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-git.el
(defun magit--painted-branch-at-point (&optional type)
  (or (and (not (eq type 'remote))
           (memq (get-text-property (magit-point) 'font-lock-face)
                 (list 'magit-branch-local
                       'magit-branch-current))
           (and$ (magit-thing-at-point 'git-revision t)
                 (cdr (magit-split-branch-name $))))
      (and (not (eq type 'local))
           (memq (get-text-property (magit-point) 'font-lock-face)
                 (list 'magit-branch-remote
                       'magit-branch-remote-head))
           (thing-at-point 'git-revision t))))