Function: magit-repolist-column-branch

magit-repolist-column-branch is a natively compiled function defined in magit-repos.el.

Signature

(magit-repolist-column-branch _)

Documentation

Insert the current branch.

Source Code

;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/magit-repos.el
(defun magit-repolist-column-branch (_)
  "Insert the current branch."
  (if (file-exists-p ".git")
      (let ((branch (magit-get-current-branch)))
        (if (member branch magit-main-branch-names)
            (magit--propertize-face branch 'shadow)
          branch))
    (magit--propertize-face "(unpopulated)" 'warning)))