mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-09 03:53:47 -05:00
Remove fugitive#head()
This commit is contained in:
@@ -962,6 +962,10 @@ function! fugitive#Head(...) abort
|
|||||||
endif
|
endif
|
||||||
endfunction
|
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
|
function! fugitive#RevParse(rev, ...) abort
|
||||||
let hash = s:ChompDefault('', [a:0 ? a:1 : s:Dir(), 'rev-parse', '--verify', a:rev, '--'])
|
let hash = s:ChompDefault('', [a:0 ? a:1 : s:Dir(), 'rev-parse', '--verify', a:rev, '--'])
|
||||||
if hash =~# '^\x\{40,\}$'
|
if hash =~# '^\x\{40,\}$'
|
||||||
@@ -8018,14 +8022,6 @@ function! fugitive#statusline(...) abort
|
|||||||
return fugitive#Statusline()
|
return fugitive#Statusline()
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! fugitive#head(...) abort
|
|
||||||
if empty(s:Dir())
|
|
||||||
return ''
|
|
||||||
endif
|
|
||||||
|
|
||||||
return fugitive#Head(a:0 ? a:1 : 0)
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
" Section: Folding
|
" Section: Folding
|
||||||
|
|
||||||
function! fugitive#Foldtext() abort
|
function! fugitive#Foldtext() abort
|
||||||
|
|||||||
Reference in New Issue
Block a user