Function: majutsu-op--diff-group-kind

majutsu-op--diff-group-kind is a natively compiled function defined in majutsu-op.el.

Signature

(majutsu-op--diff-group-kind PLAIN-LINE)

Documentation

Return the operation diff group kind for PLAIN-LINE, or nil.

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-op.el
(defun majutsu-op--diff-group-kind (plain-line)
  "Return the operation diff group kind for PLAIN-LINE, or nil."
  (let ((line (string-trim plain-line)))
    (cond
     ((string= line "Changed commits:") 'commits)
     ((string-match-p "\\`Changed working copy .+:\\'" line) 'working-copy)
     ((string= line "Changed local bookmarks:") 'local-bookmarks)
     ((string= line "Changed local tags:") 'local-tags)
     ((string= line "Changed remote bookmarks:") 'remote-bookmarks)
     ((string= line "Changed remote tags:") 'remote-tags)
     ((string-match-p "\\`Changed .+:\\'" line) 'changed))))