mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-11 21:03:53 -05:00
Rename overlooked snakecase function
This commit is contained in:
@@ -900,7 +900,7 @@ function! s:Git(bang, mods, args) abort
|
|||||||
return matchstr(a:args, '\v\C\\@<!%(\\\\)*\|\zs.*')
|
return matchstr(a:args, '\v\C\\@<!%(\\\\)*\|\zs.*')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! fugitive#git_commands() abort
|
function! s:Subcommands() abort
|
||||||
if !exists('s:exec_path')
|
if !exists('s:exec_path')
|
||||||
let s:exec_path = s:sub(system(g:fugitive_git_executable.' --exec-path'),'\n$','')
|
let s:exec_path = s:sub(system(g:fugitive_git_executable.' --exec-path'),'\n$','')
|
||||||
endif
|
endif
|
||||||
@@ -909,7 +909,7 @@ endfunction
|
|||||||
|
|
||||||
function! s:GitComplete(A, L, P) abort
|
function! s:GitComplete(A, L, P) abort
|
||||||
if strpart(a:L, 0, a:P) !~# ' [[:alnum:]-]\+ '
|
if strpart(a:L, 0, a:P) !~# ' [[:alnum:]-]\+ '
|
||||||
let cmds = fugitive#git_commands()
|
let cmds = s:Subcommands()
|
||||||
return filter(sort(cmds+keys(s:repo().aliases())), 'strpart(v:val, 0, strlen(a:A)) ==# a:A')
|
return filter(sort(cmds+keys(s:repo().aliases())), 'strpart(v:val, 0, strlen(a:A)) ==# a:A')
|
||||||
else
|
else
|
||||||
return s:repo().superglob(a:A)
|
return s:repo().superglob(a:A)
|
||||||
|
|||||||
Reference in New Issue
Block a user