From 3ac318bfd39b95a357f51c17ddf5fe587db8a0c6 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Wed, 24 Apr 2019 15:29:51 +0200 Subject: [PATCH] fugitive: replace old buffer().commit() function by new global function as requested by the exception thrown: fugitive: A third-party plugin or vimrc is calling fugitive#buffer().commit() which has been removed. Replace it with matchstr(FugitiveParse()[0], '^\x\+') --- autoload/airline/extensions/branch.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/airline/extensions/branch.vim b/autoload/airline/extensions/branch.vim index 4b3a17dd..71d36ad5 100644 --- a/autoload/airline/extensions/branch.vim +++ b/autoload/airline/extensions/branch.vim @@ -101,7 +101,7 @@ endfunction function! s:display_git_branch() let name = b:buffer_vcs_config['git'].branch try - let commit = fugitive#buffer().commit() + let commit = matchstr(FugitiveParse()[0], '^\x\+') if has_key(s:names, commit) let name = get(s:names, commit)."(".name.")"