Function: magit-discard-hunks

magit-discard-hunks is a natively compiled function defined in magit-apply.el.

Signature

(magit-discard-hunks SECTIONS)

Source Code

;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/magit-apply.el
(defun magit-discard-hunks (sections)
  (magit-confirm 'discard
    (list "Discard %d hunks from %s"
          (length sections)
          (magit-section-parent-value (car sections))))
  (magit-discard-apply sections #'magit-apply-hunks))