mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-14 14:23:51 -05:00
Move IO functions with rest of API
This commit is contained in:
@@ -278,6 +278,23 @@ function! s:ProjectionistDetect() abort
|
|||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
let g:io_fugitive = {
|
||||||
|
\ 'simplify': function('fugitive#simplify'),
|
||||||
|
\ 'resolve': function('fugitive#resolve'),
|
||||||
|
\ 'getftime': function('fugitive#getftime'),
|
||||||
|
\ 'getfsize': function('fugitive#getfsize'),
|
||||||
|
\ 'getftype': function('fugitive#getftype'),
|
||||||
|
\ 'filereadable': function('fugitive#filereadable'),
|
||||||
|
\ 'filewritable': function('fugitive#filewritable'),
|
||||||
|
\ 'isdirectory': function('fugitive#isdirectory'),
|
||||||
|
\ 'getfperm': function('fugitive#getfperm'),
|
||||||
|
\ 'setfperm': function('fugitive#setfperm'),
|
||||||
|
\ 'readfile': function('fugitive#readfile'),
|
||||||
|
\ 'writefile': function('fugitive#writefile'),
|
||||||
|
\ 'glob': function('fugitive#glob'),
|
||||||
|
\ 'delete': function('fugitive#delete'),
|
||||||
|
\ 'Real': function('FugitiveReal')}
|
||||||
|
|
||||||
augroup fugitive
|
augroup fugitive
|
||||||
autocmd!
|
autocmd!
|
||||||
|
|
||||||
@@ -340,20 +357,3 @@ augroup END
|
|||||||
let s:addr_other = has('patch-8.1.560') ? '-addr=other' : ''
|
let s:addr_other = has('patch-8.1.560') ? '-addr=other' : ''
|
||||||
exe 'command! -bang -nargs=? -range=-1' s:addr_other '-complete=customlist,fugitive#Complete G exe fugitive#Command(<line1>, <count>, +"<range>", <bang>0, "<mods>", <q-args>)'
|
exe 'command! -bang -nargs=? -range=-1' s:addr_other '-complete=customlist,fugitive#Complete G exe fugitive#Command(<line1>, <count>, +"<range>", <bang>0, "<mods>", <q-args>)'
|
||||||
exe 'command! -bang -nargs=? -range=-1' s:addr_other '-complete=customlist,fugitive#Complete Git exe fugitive#Command(<line1>, <count>, +"<range>", <bang>0, "<mods>", <q-args>)'
|
exe 'command! -bang -nargs=? -range=-1' s:addr_other '-complete=customlist,fugitive#Complete Git exe fugitive#Command(<line1>, <count>, +"<range>", <bang>0, "<mods>", <q-args>)'
|
||||||
|
|
||||||
let g:io_fugitive = {
|
|
||||||
\ 'simplify': function('fugitive#simplify'),
|
|
||||||
\ 'resolve': function('fugitive#resolve'),
|
|
||||||
\ 'getftime': function('fugitive#getftime'),
|
|
||||||
\ 'getfsize': function('fugitive#getfsize'),
|
|
||||||
\ 'getftype': function('fugitive#getftype'),
|
|
||||||
\ 'filereadable': function('fugitive#filereadable'),
|
|
||||||
\ 'filewritable': function('fugitive#filewritable'),
|
|
||||||
\ 'isdirectory': function('fugitive#isdirectory'),
|
|
||||||
\ 'getfperm': function('fugitive#getfperm'),
|
|
||||||
\ 'setfperm': function('fugitive#setfperm'),
|
|
||||||
\ 'readfile': function('fugitive#readfile'),
|
|
||||||
\ 'writefile': function('fugitive#writefile'),
|
|
||||||
\ 'glob': function('fugitive#glob'),
|
|
||||||
\ 'delete': function('fugitive#delete'),
|
|
||||||
\ 'Real': function('FugitiveReal')}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user