Function: majutsu-interactive--hunkless-file-sections
majutsu-interactive--hunkless-file-sections is a natively compiled
function defined in majutsu-interactive.el.
Signature
(majutsu-interactive--hunkless-file-sections)
Documentation
Return metadata-backed file sections that have no text hunks.
The result follows the displayed diff order, rather than the unspecified iteration order of the selection hash table.
Source Code
;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-interactive.el
(defun majutsu-interactive--hunkless-file-sections ()
"Return metadata-backed file sections that have no text hunks.
The result follows the displayed diff order, rather than the unspecified
iteration order of the selection hash table."
(let (result)
(when magit-root-section
(magit-map-sections
(lambda (section)
(when (and (magit-section-match 'jj-file section)
(null (majutsu-interactive--file-section-hunks section))
(majutsu-diff-file-metadata section))
(push section result)))
magit-root-section))
(nreverse result)))