mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-15 14:53:51 -05:00
Drop unused args parameter from :Gcommand implementations
We stopped using this in 6356bbc4a7.
This commit is contained in:
@@ -5861,7 +5861,7 @@ function! s:BlurStatus() abort
|
||||
endfunction
|
||||
|
||||
let s:bang_edits = {'split': 'Git', 'vsplit': 'vertical Git', 'tabedit': 'tab Git', 'pedit': 'Git!'}
|
||||
function! fugitive#Open(cmd, bang, mods, arg, args) abort
|
||||
function! fugitive#Open(cmd, bang, mods, arg, ...) abort
|
||||
exe s:VersionCheck()
|
||||
if a:bang
|
||||
return 'echoerr ' . string(':G' . a:cmd . '! for temp buffer output has been replaced by :' . get(s:bang_edits, a:cmd, 'Git') . ' --paginate')
|
||||
@@ -5901,7 +5901,7 @@ function! s:ReadPrepare(line1, count, range, mods) abort
|
||||
return [pre . 'keepalt ' . mods . after . 'read', '|' . delete . 'diffupdate' . (a:count < 0 ? '|' . line('.') : '')]
|
||||
endfunction
|
||||
|
||||
function! fugitive#ReadCommand(line1, count, range, bang, mods, arg, args) abort
|
||||
function! fugitive#ReadCommand(line1, count, range, bang, mods, arg, ...) abort
|
||||
exe s:VersionCheck()
|
||||
if a:bang
|
||||
return 'echoerr ' . string(':Gread! for temp buffer output has been replaced by :{range}Git! --paginate')
|
||||
@@ -5936,7 +5936,7 @@ endfunction
|
||||
|
||||
" Section: :Gwrite, :Gwq
|
||||
|
||||
function! fugitive#WriteCommand(line1, line2, range, bang, mods, arg, args) abort
|
||||
function! fugitive#WriteCommand(line1, line2, range, bang, mods, arg, ...) abort
|
||||
exe s:VersionCheck()
|
||||
if s:cpath(expand('%:p'), fugitive#Find('.git/COMMIT_EDITMSG')) && empty(a:arg)
|
||||
return (empty($GIT_INDEX_FILE) ? 'write|bdelete' : 'wq') . (a:bang ? '!' : '')
|
||||
@@ -6213,7 +6213,7 @@ function! s:IsConflicted() abort
|
||||
return len(@%) && !empty(s:ChompDefault('', ['ls-files', '--unmerged', '--', expand('%:p')]))
|
||||
endfunction
|
||||
|
||||
function! fugitive#Diffsplit(autodir, keepfocus, mods, arg, args) abort
|
||||
function! fugitive#Diffsplit(autodir, keepfocus, mods, arg, ...) abort
|
||||
exe s:VersionCheck()
|
||||
let args = s:ArgSplit(a:arg)
|
||||
let post = ''
|
||||
@@ -6424,11 +6424,11 @@ function! fugitive#RenameComplete(A,L,P) abort
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function! fugitive#MoveCommand(line1, line2, range, bang, mods, arg, args) abort
|
||||
function! fugitive#MoveCommand(line1, line2, range, bang, mods, arg, ...) abort
|
||||
return s:Move(a:bang, 0, a:arg)
|
||||
endfunction
|
||||
|
||||
function! fugitive#RenameCommand(line1, line2, range, bang, mods, arg, args) abort
|
||||
function! fugitive#RenameCommand(line1, line2, range, bang, mods, arg, ...) abort
|
||||
return s:Move(a:bang, 1, a:arg)
|
||||
endfunction
|
||||
|
||||
@@ -6454,11 +6454,11 @@ function! s:Remove(after, force) abort
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function! fugitive#RemoveCommand(line1, line2, range, bang, mods, arg, args) abort
|
||||
function! fugitive#RemoveCommand(line1, line2, range, bang, mods, arg, ...) abort
|
||||
return s:Remove('edit', a:bang)
|
||||
endfunction
|
||||
|
||||
function! fugitive#DeleteCommand(line1, line2, range, bang, mods, arg, args) abort
|
||||
function! fugitive#DeleteCommand(line1, line2, range, bang, mods, arg, ...) abort
|
||||
return s:Remove('bdelete', a:bang)
|
||||
endfunction
|
||||
|
||||
@@ -7030,7 +7030,7 @@ function! s:BrowserOpen(url, mods, echo_copy) abort
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function! fugitive#BrowseCommand(line1, count, range, bang, mods, arg, args) abort
|
||||
function! fugitive#BrowseCommand(line1, count, range, bang, mods, arg, ...) abort
|
||||
exe s:VersionCheck()
|
||||
let dir = s:Dir()
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user