mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-10 20:43:47 -05:00
Use "undo" instead of "revert" for discarding a hunk.
"Undo" is a better name than "revert" because: - "revert" sounds like it has something to do with `git-revert` but they are entirely different; - "undo" is consistent with vim's "undo": discarding changes and going back to the original. Maintain backwards compatibility and add deprecation warnings. Closes #306.
This commit is contained in:
13
test/hunkUndoNearbyGitDiff.expected
Normal file
13
test/hunkUndoNearbyGitDiff.expected
Normal file
@@ -0,0 +1,13 @@
|
||||
diff --git a/test/fixture.txt b/test/fixture.txt
|
||||
index f5c6aff..3fbde56 100644
|
||||
--- a/test/fixture.txt
|
||||
+++ b/test/fixture.txt
|
||||
@@ -1,5 +1,8 @@
|
||||
a
|
||||
b
|
||||
+x
|
||||
+y
|
||||
+z
|
||||
c
|
||||
d
|
||||
e
|
||||
Reference in New Issue
Block a user