From 1b1e01fe856acc7957597654c6530fb9b6cdfd6d Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Thu, 26 Sep 2024 20:02:05 +0100 Subject: [PATCH] ; * etc/NEWS: Don't say that C-c M-r can undo whole commits. (cherry picked from commit 37bed70f4c0a2e33de238eab90d7470d34366f13) --- etc/NEWS | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/etc/NEWS b/etc/NEWS index 19bc9c3c43f..65b7475272a 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -331,8 +331,9 @@ command attempts to look up and copy the text in-between the hunks. +++ *** New command 'diff-revert-and-kill-hunk' bound to C-c M-r. This command reverts the hunk at point (i.e., applies the reverse of the -hunk), and then removes the hunk from the diffs. This is useful to undo -commits when you are in buffers generated by 'C-x v =' and 'C-x v D'. +hunk), and then removes the hunk from the diffs. +This is useful to undo or revert changes, committed and uncommitted, when +you are in buffers generated by 'C-x v =' and 'C-x v D'. ** php-ts-mode -- 2.39.2