Function: magit--painted-branch-as-menu-section
magit--painted-branch-as-menu-section is a byte-compiled function
defined in magit-refs.el.
Signature
(magit--painted-branch-as-menu-section SECTION)
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-refs.el
(defun magit--painted-branch-as-menu-section (section)
(and-let ((_(magit-section-match 'commit))
(branch (magit--painted-branch-at-point)))
(let ((dummy (magit-section :type 'branch :value branch)))
(oset dummy keymap magit-branch-section-map)
(dolist (slot '(start content hidden parent children))
(when (slot-boundp section slot)
(setf (eieio-oref dummy slot)
(eieio-oref section slot))))
dummy)))