mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-10 04:23:46 -05:00
Add test for hunk staging.
This commit is contained in:
@@ -2,6 +2,7 @@ set runtimepath+=../
|
||||
source ../plugin/gitgutter.vim
|
||||
|
||||
function! Setup()
|
||||
call system('git reset HEAD fixture.txt')
|
||||
call system('git checkout fixture.txt')
|
||||
edit! fixture.txt
|
||||
sign unplace *
|
||||
@@ -13,3 +14,6 @@ function! DumpSigns(filename)
|
||||
redir END
|
||||
endfunction
|
||||
|
||||
function! DumpGitDiff(filename)
|
||||
call system('git diff --staged fixture.txt > '.a:filename.'.out')
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user