Function: diff-kill-applied-hunks
diff-kill-applied-hunks is an interactive and byte-compiled function
defined in diff-mode.el.gz.
Signature
(diff-kill-applied-hunks)
Documentation
Kill all hunks that have already been applied starting at point.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/vc/diff-mode.el.gz
(defun diff-kill-applied-hunks ()
"Kill all hunks that have already been applied starting at point."
(interactive)
(while (not (eobp))
(pcase-let ((`(,_buf ,line-offset ,_pos ,_src ,_dst ,switched)
(diff-find-source-location nil nil)))
(if (and line-offset switched)
(diff-hunk-kill)
(diff-hunk-next)))))