Function: majutsu-jj-read-diff-file
majutsu-jj-read-diff-file is a natively compiled function defined in
majutsu-jj.el.
Signature
(majutsu-jj-read-diff-file FROM TO)
Documentation
Read file to compare between FROM and TO revisions.
Source Code
;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-jj.el
(defun majutsu-jj-read-diff-file (from to)
"Read file to compare between FROM and TO revisions."
(unless (and from to)
(user-error "Expected both from/to, got %S and %S" from to))
(let* ((root (majutsu--toplevel-safe))
(default-directory root)
(changed (majutsu-jj-lines "diff" "--from" from "--to" to "--name-only")))
(cond
((null changed)
(user-error "No files changed between %s and %s" from to))
((= (length changed) 1)
(car changed))
(t
(majutsu-completing-read
(format "File to compare between %s and %s: " from to)
changed nil t nil 'majutsu-file-path-history nil 'majutsu-file)))))