Add grep information to debug output.

This commit is contained in:
Andy Stewart
2016-03-07 10:32:52 +00:00
parent 3ed80d959d
commit 28353bd060

View File

@@ -12,6 +12,9 @@ function! gitgutter#debug#debug()
call gitgutter#debug#git_version()
call gitgutter#debug#separator()
call gitgutter#debug#grep_version()
call gitgutter#debug#separator()
call gitgutter#debug#option('updatetime')
call gitgutter#debug#option('shell')
call gitgutter#debug#option('shellcmdflag')
@@ -42,6 +45,14 @@ function! gitgutter#debug#git_version()
call gitgutter#debug#output( substitute(v, '\n$', '', '') )
endfunction
function! gitgutter#debug#grep_version()
let v = system('grep --version')
call gitgutter#debug#output( substitute(v, '\n$', '', '') )
let v = system('grep --help')
call gitgutter#debug#output( substitute(v, '\%x00', '', 'g') )
endfunction
function! gitgutter#debug#option(name)
if exists('+' . a:name)
let v = eval('&' . a:name)