Remove fugitive#head()

This commit is contained in:
Tim Pope
2022-05-10 22:47:05 -04:00
parent b7287bd542
commit b81c59bd6a

View File

@@ -962,6 +962,10 @@ function! fugitive#Head(...) abort
endif
endfunction
function! fugitive#head(...) abort
throw 'Third party code is using fugitive#head() which has been removed. Change it to FugitiveHead()'
endfunction
function! fugitive#RevParse(rev, ...) abort
let hash = s:ChompDefault('', [a:0 ? a:1 : s:Dir(), 'rev-parse', '--verify', a:rev, '--'])
if hash =~# '^\x\{40,\}$'
@@ -8018,14 +8022,6 @@ function! fugitive#statusline(...) abort
return fugitive#Statusline()
endfunction
function! fugitive#head(...) abort
if empty(s:Dir())
return ''
endif
return fugitive#Head(a:0 ? a:1 : 0)
endfunction
" Section: Folding
function! fugitive#Foldtext() abort