Function: majutsu-conflict-parse-label
majutsu-conflict-parse-label is a natively compiled function defined
in majutsu-conflict.el.
Signature
(majutsu-conflict-parse-label LABEL)
Documentation
Parse JJ LABEL string into a plist.
Return a plist with :change-id, :commit-id, and :description keys. Return nil for nil or empty LABEL, or when LABEL does not match.
Source Code
;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-conflict.el
base) ; (label . content) for the snapshot base side
(defun majutsu-conflict-parse-label (label)
"Parse JJ LABEL string into a plist.
Return a plist with :change-id, :commit-id, and :description keys.
Return nil for nil or empty LABEL, or when LABEL does not match."
(when (and (stringp label)
(not (string= label "")))
(cond
((string-match majutsu-conflict-label-re label)
(list :change-id (match-string 1 label)
:commit-id (match-string 2 label)
:description (match-string 3 label)))
((string-match majutsu-conflict-label-absorbed-re label)
(list :change-id (match-string 1 label)
:commit-id (match-string 2 label)
:description "absorbed changes")))))