From 3e5716dba3ea203a4dc8be794a6b2dee13d5ecc4 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Tue, 30 Aug 2022 16:12:37 +0300 Subject: [PATCH] ; * etc/NEWS: Clarify wording of "C-x v v" entry. --- etc/NEWS | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/etc/NEWS b/etc/NEWS index a40954a8376..8d251448d35 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -1583,11 +1583,16 @@ info node. This command only works for the Emacs and Emacs Lisp manuals. This command marks files based on a regexp. If given a prefix argument, unmark instead. -*** 'C-x v v' on a diff buffer commits it as a patch. -You can create a diff buffer by e.g. 'C-x v D' ('vc-root-diff'), -then remove unnecessary hunks, and commit only part of your changes -by typing 'C-x v v' in that diff buffer. Currently this works only -with Git. +--- +*** 'C-x v v' in a diffs buffer allows to commit only some of the changes. +This command is intended to allow you to commit only some of the +changes you have in your working tree. Begin by creating a buffer +with the changes against the last commit, e.g. with 'C-x v D' +('vc-root-diff'). Then edit the diffs to remove the hunks you don't +want to commit. Finally, type 'C-x v v' in that diff buffer to commit +only part of your changes, those whose hunks were left in the buffer. + +Currently this feature works only with the Git as 'vc-backend'. --- *** 'C-x v v' on an unregistered file will now use the most specific backend. -- 2.39.5