Function: majutsu-interactive--collect-hunks-by-file
majutsu-interactive--collect-hunks-by-file is a natively compiled
function defined in majutsu-interactive.el.
Signature
(majutsu-interactive--collect-hunks-by-file)
Documentation
Return hash table of FILE-SECTION to list of HUNK-SECTIONS.
Source Code
;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-interactive.el
(defun majutsu-interactive--collect-hunks-by-file ()
"Return hash table of FILE-SECTION to list of HUNK-SECTIONS."
(let ((by-file (make-hash-table :test 'eq)))
(when magit-root-section
(magit-map-sections
(lambda (section)
(when (magit-section-match 'jj-hunk section)
(let ((file (oref section parent)))
(push section (gethash file by-file)))))
magit-root-section))
(maphash (lambda (file hunks)
(puthash file (nreverse hunks) by-file))
by-file)
by-file))