Function: vc-jj--revision-annotation-function
vc-jj--revision-annotation-function is a natively compiled function
defined in vc-jj.el.
Signature
(vc-jj--revision-annotation-function ELEM)
Documentation
Calculate propertized change description from ELEM.
ELEM can be of the form (change-id . description), as produced in
vc-jj-revision-completion-table, in which case we return the second
element, or can be a change id, in which case we query for the first
line of its description.
Source Code
;; Defined in /nix/store/j1ql1qsv99iszr5pqf5fk9yfcl5pq4nv-emacs-packages-deps/share/emacs/site-lisp/elpa/vc-jj-0.5/vc-jj.el
;;;; revision-completion-table
(defun vc-jj--revision-annotation-function (elem)
"Calculate propertized change description from ELEM.
ELEM can be of the form (change-id . description), as produced in
`vc-jj-revision-completion-table', in which case we return the second
element, or can be a change id, in which case we query for the first
line of its description."
(let ((description
(if (listp elem)
(cl-second elem)
(vc-jj--command-parseable "log" "-r" elem "--no-graph" "-T" "self.description().first_line()"))))
(format " %s" (propertize description 'face 'completions-annotations))))