From 89ab2d95cda2bbde3fbea87cbc83344988a4de90 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 22 Aug 2021 16:42:12 -0400 Subject: [PATCH] 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. --- autoload/fugitive.vim | 4 ++-- plugin/fugitive.vim | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index fa44557..3136b5a 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -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) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index e89a9e7..6c3c292 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -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 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