Function: majutsu--insert-diff-hunks

majutsu--insert-diff-hunks is a natively compiled function defined in majutsu-diff.el.

Signature

(majutsu--insert-diff-hunks DIFF-OUTPUT &optional ARGS)

Documentation

Insert DIFF-OUTPUT and wash it into navigable hunk sections.

ARGS are the diff arguments used to produce DIFF-OUTPUT.

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-diff.el
(defun majutsu--insert-diff-hunks (diff-output &optional args)
  "Insert DIFF-OUTPUT and wash it into navigable hunk sections.
ARGS are the diff arguments used to produce DIFF-OUTPUT."
  (let ((start (point)))
    (when diff-output
      (insert diff-output)
      (unless (or (string-empty-p diff-output)
                  (string-suffix-p "\n" diff-output))
        (insert "\n")))
    (save-restriction
      (narrow-to-region start (point))
      (goto-char (point-min))
      (majutsu-diff-wash-diffs args))))