Files
vim-gitgutter/test/testFileAddedToGit.vim
Andy Stewart 6cef76aa99 Add tests.
2014-11-14 14:06:49 +01:00

13 lines
260 B
VimL

source helper.vim
let tmpfile = 'fileAddedToGit.tmp'
call system('touch '.tmpfile)
call system('git add '.tmpfile)
execute 'edit '.tmpfile
normal ihello
write
call DumpSigns('fileAddedToGit')
call system('git reset HEAD '.tmpfile)
call system('rm '.tmpfile)