mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 21:33:53 -05:00
Camel case public functions
This commit is contained in:
@@ -81,7 +81,7 @@ function! s:git_command() abort
|
|||||||
return get(g:, 'fugitive_git_command', g:fugitive_git_executable)
|
return get(g:, 'fugitive_git_command', g:fugitive_git_executable)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! fugitive#git_version(...) abort
|
function! fugitive#GitVersion(...) abort
|
||||||
if !has_key(s:git_versions, g:fugitive_git_executable)
|
if !has_key(s:git_versions, g:fugitive_git_executable)
|
||||||
let s:git_versions[g:fugitive_git_executable] = matchstr(system(g:fugitive_git_executable.' --version'), "\\S\\+\n")
|
let s:git_versions[g:fugitive_git_executable] = matchstr(system(g:fugitive_git_executable.' --version'), "\\S\\+\n")
|
||||||
endif
|
endif
|
||||||
@@ -1112,7 +1112,7 @@ function! s:RemoteComplete(A, L, P) abort
|
|||||||
return join(matches, "\n")
|
return join(matches, "\n")
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! fugitive#cwindow() abort
|
function! fugitive#Cwindow() abort
|
||||||
if &buftype == 'quickfix'
|
if &buftype == 'quickfix'
|
||||||
cwindow
|
cwindow
|
||||||
else
|
else
|
||||||
@@ -1202,7 +1202,7 @@ function! s:Merge(cmd, bang, args) abort
|
|||||||
let e.pattern = '^<<<<<<<'
|
let e.pattern = '^<<<<<<<'
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
call fugitive#cwindow()
|
call fugitive#Cwindow()
|
||||||
if found
|
if found
|
||||||
call setqflist(qflist, 'r')
|
call setqflist(qflist, 'r')
|
||||||
if !a:bang
|
if !a:bang
|
||||||
@@ -1604,7 +1604,7 @@ function! s:Dispatch(bang, args)
|
|||||||
else
|
else
|
||||||
silent noautocmd make!
|
silent noautocmd make!
|
||||||
redraw!
|
redraw!
|
||||||
return 'call fugitive#cwindow()'
|
return 'call fugitive#Cwindow()'
|
||||||
endif
|
endif
|
||||||
return ''
|
return ''
|
||||||
finally
|
finally
|
||||||
@@ -1638,7 +1638,7 @@ function! s:can_diffoff(buf) abort
|
|||||||
\ !empty(getwinvar(bufwinnr(a:buf), 'fugitive_diff_restore'))
|
\ !empty(getwinvar(bufwinnr(a:buf), 'fugitive_diff_restore'))
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! fugitive#can_diffoff(buf) abort
|
function! fugitive#CanDiffoff(buf) abort
|
||||||
return s:can_diffoff(a:buf)
|
return s:can_diffoff(a:buf)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
@@ -2289,7 +2289,7 @@ function! s:Browse(bang,line1,count,...) abort
|
|||||||
else
|
else
|
||||||
let remote_for_url = remote
|
let remote_for_url = remote
|
||||||
endif
|
endif
|
||||||
if fugitive#git_version() =~# '^[01]\.\|^2\.[0-6]\.'
|
if fugitive#GitVersion() =~# '^[01]\.\|^2\.[0-6]\.'
|
||||||
let raw = s:repo().git_chomp('config','remote.'.remote_for_url.'.url')
|
let raw = s:repo().git_chomp('config','remote.'.remote_for_url.'.url')
|
||||||
else
|
else
|
||||||
let raw = s:repo().git_chomp('remote','get-url',remote_for_url)
|
let raw = s:repo().git_chomp('remote','get-url',remote_for_url)
|
||||||
@@ -2488,7 +2488,7 @@ function! fugitive#BufReadStatus() abort
|
|||||||
else
|
else
|
||||||
let cd = exists('*haslocaldir') && haslocaldir() ? 'lcd' : 'cd'
|
let cd = exists('*haslocaldir') && haslocaldir() ? 'lcd' : 'cd'
|
||||||
let dir = getcwd()
|
let dir = getcwd()
|
||||||
if fugitive#git_version() =~# '^0\|^1\.[1-7]\.'
|
if fugitive#GitVersion() =~# '^0\|^1\.[1-7]\.'
|
||||||
let cmd = s:repo().git_command('status')
|
let cmd = s:repo().git_command('status')
|
||||||
else
|
else
|
||||||
let cmd = s:repo().git_command(
|
let cmd = s:repo().git_command(
|
||||||
|
|||||||
Reference in New Issue
Block a user