mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-09 03:53:47 -05:00
Test stage/revert is noop when outside a hunk.
This commit is contained in:
0
test/hunkHunkOutsideNoopStageGitDiffStaged.expected
Normal file
0
test/hunkHunkOutsideNoopStageGitDiffStaged.expected
Normal file
2
test/hunkOutsideNoopRevertSigns.expected
Normal file
2
test/hunkOutsideNoopRevertSigns.expected
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
|
||||||
|
--- Signs ---
|
||||||
2
test/hunkOutsideNoopStageSigns.expected
Normal file
2
test/hunkOutsideNoopStageSigns.expected
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
|
||||||
|
--- Signs ---
|
||||||
13
test/testHunkOutsideNoop.vim
Normal file
13
test/testHunkOutsideNoop.vim
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
source helper.vim
|
||||||
|
call Setup()
|
||||||
|
|
||||||
|
normal 5G
|
||||||
|
|
||||||
|
execute 'GitGutterStageHunk'
|
||||||
|
call DumpSigns('hunkOutsideNoopStageSigns')
|
||||||
|
call DumpGitDiffStaged('hunkHunkOutsideNoopStageGitDiffStaged')
|
||||||
|
|
||||||
|
execute 'GitGutterRevertHunk'
|
||||||
|
call DumpSigns('hunkOutsideNoopRevertSigns')
|
||||||
|
call DumpGitDiffStaged('hunkHunkOutsideNoopRevertGitDiffStaged')
|
||||||
|
|
||||||
Reference in New Issue
Block a user