Perforce: make it use g:signify_diffoptions

References #89.
This commit is contained in:
Marco Hinz 2013-11-22 19:50:49 +01:00
parent 6ecab1b621
commit 824b186ce5

View File

@ -165,7 +165,7 @@ endfunction
" Function: #get_diff_perforce {{{1
function! sy#repo#get_diff_perforce() abort
let diffoptions = has_key(s:diffoptions, 'perforce') ? s:diffoptions.perforce : ''
let diffoptions = has_key(g:signify_diffoptions, 'perforce') ? g:signify_diffoptions.perforce : ''
let diff = system('env P4DIFF=diff p4 diff -dU0 '. diffoptions .' '. sy#util#escape(b:sy.path))
return v:shell_error ? [0, ''] : [1, diff]
endfunction