Function: majutsu-interactive--file-section-with-hunks
majutsu-interactive--file-section-with-hunks is a natively compiled
function defined in majutsu-interactive.el.
Signature
(majutsu-interactive--file-section-with-hunks FILE)
Documentation
Find a jj-file section for FILE that contains hunks.
Source Code
;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-interactive.el
(defun majutsu-interactive--file-section-with-hunks (file)
"Find a jj-file section for FILE that contains hunks."
(let (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)
(seq-some (lambda (child)
(magit-section-match 'jj-hunk child))
(oref section children)))
(setq result section)))
magit-root-section))
result))