motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit bb466308282c3d3ef9007ecceb45db931f606ae7 (tree)
parent c448104332b095251a468765b4c58fa103b0b5fa
Author: Tim Pope <code@tpope.net>
Date:   Mon,  7 Jan 2019 11:29:46 -0500

Clarify that removal notices need to be fixed at the source

Diffstat:
Mautoload/fugitive.vim | 18+++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim @@ -1154,39 +1154,39 @@ function! fugitive#buffer(...) abort endfunction function! s:buffer_getvar(var) dict abort - throw 'fugitive: Removed in favor of getbufvar()' + throw "fugitive: A third-party plugin or vimrc is calling fugitive#buffer().getvar() which has been removed. Replace it with the local variable or getbufvar()" endfunction function! s:buffer_getline(lnum) dict abort - throw 'fugitive: Removed in favor of getbufline()' + throw "fugitive: A third-party plugin or vimrc is calling fugitive#buffer().getline() which has been removed. Replace it with getline() or getbufline()" endfunction function! s:buffer_repo() dict abort - throw 'fugitive: Removed in favor of fugitive#repo()' + throw "fugitive: A third-party plugin or vimrc is calling fugitive#buffer().repo() which has been removed. Replace it with fugitive#repo()" endfunction function! s:buffer_type(...) dict abort - throw 'fugitive: Removed in favor of b:fugitive_type (or ideally avoid entirely)' + throw "fugitive: A third-party plugin or vimrc is calling fugitive#buffer().type() which has been removed. Replace it with get(b:, 'fugitive_type', '')" endfunction function! s:buffer_spec() dict abort - throw "fugitive: Removed in favor of bufname(), expand('%:p'), etc." + throw "fugitive: A third-party plugin or vimrc is calling fugitive#buffer().spec() which has been removed. Replace it with bufname(), expand('%:p'), etc" endfunction function! s:buffer_name() dict abort - throw "fugitive: Removed in favor of bufname(), expand('%:p'), etc." + throw "fugitive: A third-party plugin or vimrc is calling fugitive#buffer().name() which has been removed. Replace it with bufname(), expand('%:p'), etc" endfunction function! s:buffer_commit() dict abort - throw 'fugitive: Removed in favor of FugitiveParse()' + throw "fugitive: A third-party plugin or vimrc is calling fugitive#buffer().commit() which has been removed. Replace it with matchstr(FugitiveParse()[0], '^\x\+')" endfunction function! s:buffer_relative(...) dict abort - throw 'fugitive: Removed in favor of FugitivePath(bufname, ' . string(a:0 ? a:1 : '') . ')' + throw "fugitive: A third-party plugin or vimrc is calling fugitive#buffer().relative() which has been removed. Replace it with FugitivePath(@%, " . string(a:0 ? a:1 : '') . ")" endfunction function! s:buffer_path(...) dict abort - throw 'fugitive: Removed in favor of FugitivePath(bufname, ' . string(a:0 ? a:1 : '') . ')' + throw "fugitive: A third-party plugin or vimrc is calling fugitive#buffer().path() which has been removed. Replace it with FugitivePath(@%, " . string(a:0 ? a:1 : '') . ")" endfunction call s:add_methods('buffer',['getvar','getline','repo','type','spec','name','commit','path','relative'])