Add test for hunk staging.

This commit is contained in:
Andy Stewart
2014-11-13 15:21:37 +01:00
parent dd054534a0
commit 1f2bb48be5
4 changed files with 26 additions and 0 deletions

View File

@@ -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