Function: majutsu-op--insert-diff-endpoints

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

Signature

(majutsu-op--insert-diff-endpoints ARGS)

Documentation

Insert metadata for explicit from/to operation diff ARGS.

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-op.el
(defun majutsu-op--insert-diff-endpoints (args)
  "Insert metadata for explicit from/to operation diff ARGS."
  (let ((from (majutsu-op--diff-arg-value "--from=" args))
        (to (majutsu-op--diff-arg-value "--to=" args)))
    (when (or from to)
      (magit-insert-section (jj-op-diff-endpoints nil)
        (magit-insert-heading "Operations")
        (when from
          (majutsu-op--insert-diff-endpoint "From" from))
        (when to
          (majutsu-op--insert-diff-endpoint "To" to))))))