mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-11 04:53:46 -05:00
Asynchronous diffs in Vim.
This commit is contained in:
@@ -2,7 +2,6 @@ let s:file = ''
|
||||
let s:using_xolox_shell = -1
|
||||
let s:exit_code = 0
|
||||
let s:fish = &shell =~# 'fish'
|
||||
let s:jobs = {}
|
||||
|
||||
function! gitgutter#utility#warn(message)
|
||||
echohl WarningMsg
|
||||
@@ -170,20 +169,6 @@ function! gitgutter#utility#strip_trailing_new_line(line)
|
||||
return substitute(a:line, '\n$', '', '')
|
||||
endfunction
|
||||
|
||||
function! gitgutter#utility#pending_job(job_id)
|
||||
let s:jobs[a:job_id] = 1
|
||||
endfunction
|
||||
|
||||
function! gitgutter#utility#is_pending_job(job_id)
|
||||
return has_key(s:jobs, a:job_id)
|
||||
endfunction
|
||||
|
||||
function! gitgutter#utility#job_output_received(job_id, event)
|
||||
if has_key(s:jobs, a:job_id)
|
||||
unlet s:jobs[a:job_id]
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function! gitgutter#utility#git_version()
|
||||
return matchstr(system('git --version'), '[0-9.]\+')
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user