mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 13:23:52 -05:00
Drop Vim requirement to 7.3
The code base still supports 7.3 (7.2.061 to be precise) so no harm in dropping this for one final release.
This commit is contained in:
@@ -88,8 +88,8 @@ function! s:throw(string) abort
|
||||
endfunction
|
||||
|
||||
function! s:VersionCheck() abort
|
||||
if v:version < 704
|
||||
return 'return ' . string('echoerr "fugitive: Vim 7.4 or newer required"')
|
||||
if v:version < 703
|
||||
return 'return ' . string('echoerr "fugitive: Vim 7.3 or newer required"')
|
||||
elseif empty(fugitive#GitVersion())
|
||||
let exe = get(s:GitCmd(), 0, '')
|
||||
if len(exe) && !executable(exe)
|
||||
|
||||
@@ -16,7 +16,7 @@ let s:bad_git_dir = '/$\|^fugitive:'
|
||||
" Fugitive is active in the current buffer. Do not rely on this for direct
|
||||
" filesystem access; use FugitiveFind('.git/whatever') instead.
|
||||
function! FugitiveGitDir(...) abort
|
||||
if v:version < 704
|
||||
if v:version < 703
|
||||
return ''
|
||||
elseif !a:0 || type(a:1) == type(0) && a:1 < 0 || a:1 is# get(v:, 'true', -1)
|
||||
if exists('g:fugitive_event')
|
||||
@@ -369,7 +369,7 @@ function! FugitiveExtractGitDir(path) abort
|
||||
endfunction
|
||||
|
||||
function! FugitiveDetect(...) abort
|
||||
if v:version < 704
|
||||
if v:version < 703
|
||||
return ''
|
||||
endif
|
||||
if exists('b:git_dir') && b:git_dir =~# '^$\|' . s:bad_git_dir
|
||||
@@ -523,7 +523,7 @@ if exists(':Gbrowse') != 2 && get(g:, 'fugitive_legacy_commands', 1)
|
||||
\ '|if <bang>1|redraw!|endif|echohl WarningMSG|echomsg ":Gbrowse is deprecated in favor of :GBrowse"|echohl NONE'
|
||||
endif
|
||||
|
||||
if v:version < 704
|
||||
if v:version < 703
|
||||
finish
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user