aboutsummaryrefslogtreecommitdiff
path: root/doc/diff_prune.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/diff_prune.txt')
-rw-r--r--doc/diff_prune.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/diff_prune.txt b/doc/diff_prune.txt
index ce6c830..ed1932b 100644
--- a/doc/diff_prune.txt
+++ b/doc/diff_prune.txt
@@ -1,4 +1,4 @@
-*diff_prune.txt* For Vim version 7.0 Last change: 2018 June 24
+*diff_prune.txt* For Vim version 7.0 Last change: 2018 June 29
DESCRIPTION *diff_prune*
@@ -7,6 +7,9 @@ mappings in normal and visual mode to reverse changes defined by a linewise
motion or visual mode selection: leading minus signs are removed, and lines
with leading plus signs are deleted.
+If the changes result in a diff block or file block having no changes left, it
+is also removed.
+
This can be handy for using with the `-e` or `--edit` option to `git-add`,
which allows you to edit a diff before applying changes to the staging area.