Function: majutsu-diff--collect-diff-files
majutsu-diff--collect-diff-files is a natively compiled function
defined in majutsu-diff.el.
Signature
(majutsu-diff--collect-diff-files)
Documentation
Return file paths in the order they appear in the current diff.
Prefer active structured metadata; otherwise fall back to simple
unquoted diff --git headers.
Source Code
;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-diff.el
(defun majutsu-diff--collect-diff-files ()
"Return file paths in the order they appear in the current diff.
Prefer active structured metadata; otherwise fall back to simple
unquoted `diff --git' headers."
(or (mapcar (lambda (entry) (plist-get entry :target))
majutsu-diff--active-file-metadata)
(save-excursion
(goto-char (point-min))
(let (files)
(while (re-search-forward "^diff --git a/\\(.*\\) b/\\(.*\\)$" nil t)
(push (match-string-no-properties 2) files))
(nreverse files)))))