Fix arguments of a few diff functions

Fixes #205.
This commit is contained in:
Marco Hinz 2017-01-23 02:01:56 +01:00
parent faf5240823
commit 9ced2cf73f
No known key found for this signature in database
GPG Key ID: 1C980A1B657B4A4F

View File

@ -155,28 +155,28 @@ function! sy#repo#get_diff_cvs(exitval, diff, do_register) abort
endfunction endfunction
" Function: #get_diff_rcs {{{1 " Function: #get_diff_rcs {{{1
function! sy#repo#get_diff_rcs() abort function! sy#repo#get_diff_rcs(exitval, diff, do_register) abort
call sy#verbose('get_diff_rcs()', 'rcs') call sy#verbose('get_diff_rcs()', 'rcs')
let [found_diff, diff] = a:exitval ? [0, ''] : [1, a:diff] let [found_diff, diff] = a:exitval ? [0, ''] : [1, a:diff]
call s:get_diff_end(found_diff, 'rcs', diff, a:do_register) call s:get_diff_end(found_diff, 'rcs', diff, a:do_register)
endfunction endfunction
" Function: #get_diff_accurev {{{1 " Function: #get_diff_accurev {{{1
function! sy#repo#get_diff_accurev() abort function! sy#repo#get_diff_accurev(exitval, diff, do_register) abort
call sy#verbose('get_diff_accurev()', 'accurev') call sy#verbose('get_diff_accurev()', 'accurev')
let [found_diff, diff] = (a:exitval >= 2) ? [0, ''] : [1, a:diff] let [found_diff, diff] = (a:exitval >= 2) ? [0, ''] : [1, a:diff]
call s:get_diff_end(found_diff, 'accurev', diff, a:do_register) call s:get_diff_end(found_diff, 'accurev', diff, a:do_register)
endfunction endfunction
" Function: #get_diff_perforce {{{1 " Function: #get_diff_perforce {{{1
function! sy#repo#get_diff_perforce() abort function! sy#repo#get_diff_perforce(exitval, diff, do_register) abort
call sy#verbose('get_diff_perforce()', 'perforce') call sy#verbose('get_diff_perforce()', 'perforce')
let [found_diff, diff] = a:exitval ? [0, ''] : [1, a:diff] let [found_diff, diff] = a:exitval ? [0, ''] : [1, a:diff]
call s:get_diff_end(found_diff, 'perforce', diff, a:do_register) call s:get_diff_end(found_diff, 'perforce', diff, a:do_register)
endfunction endfunction
" Function: #get_diff_tfs {{{1 " Function: #get_diff_tfs {{{1
function! sy#repo#get_diff_tfs() abort function! sy#repo#get_diff_tfs(exitval, diff, do_register) abort
call sy#verbose('get_diff_tfs()', 'tfs') call sy#verbose('get_diff_tfs()', 'tfs')
let [found_diff, diff] = a:exitval ? [0, ''] : [1, s:strip_context(a:diff)] let [found_diff, diff] = a:exitval ? [0, ''] : [1, s:strip_context(a:diff)]
call s:get_diff_end(found_diff, 'tfs', diff, a:do_register) call s:get_diff_end(found_diff, 'tfs', diff, a:do_register)