forked from airblade/vim-gitgutter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for revert subsequent nearby hunk.
- Loading branch information
Showing
3 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
--- Signs --- | ||
Signs for fixture.txt: | ||
line=3 id=3000 name=GitGutterLineAdded | ||
line=4 id=3001 name=GitGutterLineAdded | ||
line=5 id=3002 name=GitGutterLineAdded |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
source helper.vim | ||
call Setup() | ||
|
||
execute "normal! 2Gox\<CR>y\<CR>z" | ||
normal 2jdd | ||
normal k | ||
execute 'GitGutterRevertHunk' | ||
call DumpSigns('hunkRevertNearbySigns') | ||
call DumpGitDiff('hunkRevertNearbyGitDiff') |