Function: majutsu-op--insert-diff-endpoint

majutsu-op--insert-diff-endpoint is a natively compiled function defined in majutsu-op.el.

Signature

(majutsu-op--insert-diff-endpoint LABEL OPERATION)

Documentation

Insert metadata for operation diff endpoint LABEL and OPERATION.

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-op.el
(defun majutsu-op--insert-diff-endpoint (label operation)
  "Insert metadata for operation diff endpoint LABEL and OPERATION."
  (let* ((metadata (majutsu-op--metadata operation))
         (op-id (plist-get metadata :op-id)))
    (magit-insert-section
        (jj-op-diff-endpoint (list :label label :op-id op-id))
      (magit-insert-heading
        (format "%s operation %s" label
                (or (plist-get metadata :op-id-short) op-id)))
      (majutsu-op--insert-metadata-field "Id" op-id)
      (majutsu-op--insert-metadata-field "User"
                                         (plist-get metadata :user))
      (majutsu-op--insert-metadata-field "Workspace"
                                         (plist-get metadata :workspace))
      (majutsu-op--insert-metadata-field "Ended"
                                         (plist-get metadata :end-time))
      (majutsu-op--insert-metadata-field "Description"
                                         (plist-get metadata :desc)))))