Function: majutsu-diff--query-file-metadata

majutsu-diff--query-file-metadata is a natively compiled function defined in majutsu-diff.el.

Signature

(majutsu-diff--query-file-metadata RANGE FILESETS)

Documentation

Return structured metadata for diff RANGE and FILESETS, or nil on failure.

The caller must already have snapshotted the main diff; this query uses
--ignore-working-copy to read that same state.

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-diff.el
(defun majutsu-diff--query-file-metadata (range filesets)
  "Return structured metadata for diff RANGE and FILESETS, or nil on failure.
The caller must already have snapshotted the main diff; this query uses
`--ignore-working-copy' to read that same state."
  (let ((args (majutsu-jj-append-filesets
               (append (list "--ignore-working-copy"
                             "diff" "-T" majutsu-diff--file-metadata-template)
                       range)
               filesets)))
    (condition-case nil
        (majutsu--with-no-color
          (with-temp-buffer
            (when (zerop (apply #'majutsu-jj-insert args))
              (majutsu-diff--parse-file-metadata-output (buffer-string)))))
      (error nil))))