Function: majutsu-revisions-at-point

majutsu-revisions-at-point is a natively compiled function defined in majutsu-jj.el.

Signature

(majutsu-revisions-at-point)

Documentation

Return revision selection targets from the active region or point.

An active region of sibling jj-commit sections returns their section values. Otherwise return majutsu-revision-at-point as a singleton list. Returned strings have no text properties.

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-jj.el
(defun majutsu-revisions-at-point ()
  "Return revision selection targets from the active region or point.
An active region of sibling `jj-commit' sections returns their section
values.  Otherwise return `majutsu-revision-at-point' as a singleton
list.  Returned strings have no text properties."
  (mapcar #'substring-no-properties
          (or (magit-region-values 'jj-commit t)
              (when-let* ((revision (majutsu-revision-at-point)))
                (list revision)))))