mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-08 11:33:47 -05:00
Remove fugitive#head()
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user