Function: majutsu-interactive--file-section-for-file

majutsu-interactive--file-section-for-file is a natively compiled function defined in majutsu-interactive.el.

Signature

(majutsu-interactive--file-section-for-file FILE)

Documentation

Find the real diff file section for FILE, ignoring diffstat if possible.

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-interactive.el
(defun majutsu-interactive--file-section-for-file (file)
  "Find the real diff file section for FILE, ignoring diffstat if possible."
  (let (fallback result)
    (when (and file magit-root-section)
      (magit-map-sections
       (lambda (section)
         (when (and (magit-section-match 'jj-file section)
                    (equal (oref section value) file))
           (unless fallback (setq fallback section))
           (when (and (not result) (oref section header))
             (setq result section))))
       magit-root-section))
    (or result fallback)))