Function: projectile--worktree-annotation

projectile--worktree-annotation is a byte-compiled function defined in projectile.el.

Signature

(projectile--worktree-annotation WORKTREE)

Documentation

Return the completion annotation describing WORKTREE, or nil.

That's whatever tells this checkout apart from the others - the branch for git and Mercurial, the workspace name for Jujutsu - which is the thing a path alone doesn't say and the whole reason for picking one checkout over another.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile--worktree-annotation (worktree)
  "Return the completion annotation describing WORKTREE, or nil.
That's whatever tells this checkout apart from the others - the branch
for git and Mercurial, the workspace name for Jujutsu - which is the
thing a path alone doesn't say and the whole reason for picking one
checkout over another."
  (when-let* ((label (plist-get worktree :label)))
    (format " (%s)" label)))