]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/vc/diff-mode.el (diff-mode-menu): Add menu item "Apply all hunks".
authorJuri Linkov <juri@linkov.net>
Fri, 15 Mar 2024 07:45:48 +0000 (09:45 +0200)
committerEshel Yaron <me@eshelyaron.com>
Fri, 15 Mar 2024 09:07:12 +0000 (10:07 +0100)
It's bound to the recently added command 'diff-apply-buffer'.

(cherry picked from commit ffbf876a93c7b34c84806e43659efbac519279fa)

lisp/vc/diff-mode.el

index ac7d55c8a4683e2705e0a14fcbc9c7f54bf54b52..0f393ba86a266bb51a4ee9649e4be099bf0e6ab3 100644 (file)
@@ -240,6 +240,8 @@ The default \"-b\" means to ignore whitespace-only changes,
      :help "Apply the current hunk to the source file and go to the next"]
     ["Test applying hunk"      diff-test-hunk
      :help "See whether it's possible to apply the current hunk"]
+    ["Apply all hunks"         diff-apply-buffer
+     :help "Apply all hunks in the current diff buffer"]
     ["Apply diff with Ediff"   diff-ediff-patch
      :help "Call `ediff-patch-file' on the current buffer"]
     ["Create Change Log entries" diff-add-change-log-entries-other-window