Function: majutsu-interactive--file-operation
majutsu-interactive--file-operation is a natively compiled function
defined in majutsu-interactive.el.
Signature
(majutsu-interactive--file-operation CHANGE)
Documentation
Return the forward whole-file operation represented by CHANGE.
Source Code
;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-interactive.el
(defun majutsu-interactive--file-operation (change)
"Return the forward whole-file operation represented by CHANGE."
(let ((status (plist-get change :status))
(path (plist-get change :target))
(source (plist-get change :source)))
(pcase status
("added" (list :action 'add :path path))
("modified" (list :action 'modify :path path))
("removed" (list :action 'delete :path path))
("renamed" (list :action 'rename :source source :path path))
("copied" (list :action 'copy :source source :path path))
(_ (user-error "Unsupported whole-file jj diff status: %S" status)))))