diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 2a2c613..7496481 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -554,9 +554,6 @@ command! -bang -nargs=? -range=-1 -complete=customlist,fugitive#Complete Git exe if exists(':Gstatus') != 2 && get(g:, 'fugitive_legacy_commands', 0) exe 'command! -bang -bar -range=-1' s:addr_other 'Gstatus exe fugitive#Command(, , +"", 0, "", )' \ '|echohl WarningMSG|echomsg ":Gstatus is deprecated in favor of :Git (with no arguments)"|echohl NONE' -elseif exists(':Gstatus') != 2 && !exists('g:fugitive_legacy_commands') - exe 'command! -bang -bar -range=-1' s:addr_other 'Gstatus' - \ ' echoerr ":Gstatus has been removed in favor of :Git (with no arguments)"' endif for s:cmd in ['Commit', 'Revert', 'Merge', 'Rebase', 'Pull', 'Push', 'Fetch', 'Blame'] @@ -564,9 +561,6 @@ for s:cmd in ['Commit', 'Revert', 'Merge', 'Rebase', 'Pull', 'Push', 'Fetch', 'B exe 'command! -bang -nargs=? -range=-1 -complete=customlist,fugitive#' . s:cmd . 'Complete G' . tolower(s:cmd) \ 'echohl WarningMSG|echomsg ":G' . tolower(s:cmd) . ' is deprecated in favor of :Git ' . tolower(s:cmd) . '"|echohl NONE|' \ 'exe fugitive#Command(, , +"", 0, "", "' . tolower(s:cmd) . ' " . )' - elseif exists(':G' . tolower(s:cmd)) != 2 && !exists('g:fugitive_legacy_commands') - exe 'command! -bang -nargs=? -range=-1 -complete=customlist,fugitive#' . s:cmd . 'Complete G' . tolower(s:cmd) - \ 'echoerr ":G' . tolower(s:cmd) . ' has been removed in favor of :Git ' . tolower(s:cmd) . '"' endif endfor unlet s:cmd @@ -577,13 +571,6 @@ exe "command! -bar -bang -nargs=? -complete=customlist,fugitive#CdComplete Glcd exe 'command! -bang -nargs=? -range=-1' s:addr_wins '-complete=customlist,fugitive#GrepComplete Ggrep exe fugitive#GrepCommand(, , +"", 0, "", )' exe 'command! -bang -nargs=? -range=-1' s:addr_wins '-complete=customlist,fugitive#GrepComplete Glgrep exe fugitive#GrepCommand(0, > 0 ? : 0, +"", 0, "", )' -if exists(':Glog') != 2 && get(g:, 'fugitive_legacy_commands', 0) - exe 'command! -bang -nargs=? -range=-1 -complete=customlist,fugitive#LogComplete Glog :exe fugitive#LogCommand(,,+"",0,"",, "")' - \ '|echohl WarningMSG|echomsg ":Glog is deprecated in favor of :Gclog"|echohl NONE' -elseif exists(':Glog') != 2 && !exists('g:fugitive_legacy_commands') - exe 'command! -bang -nargs=? -range=-1 -complete=customlist,fugitive#LogComplete Glog' - \ ' echoerr ":Glog has been removed in favor of :Gclog"' -endif exe 'command! -bang -nargs=? -range=-1 -complete=customlist,fugitive#LogComplete Gclog :exe fugitive#LogCommand(,,+"",0,"",, "c")' exe 'command! -bang -nargs=? -range=-1 -complete=customlist,fugitive#LogComplete GcLog :exe fugitive#LogCommand(,,+"",0,"",, "c")' exe 'command! -bang -nargs=? -range=-1 -complete=customlist,fugitive#LogComplete Gllog :exe fugitive#LogCommand(,,+"",0,"",, "l")'