Decouple Head() from repo object

This commit is contained in:
Tim Pope
2018-08-06 01:36:37 -04:00
parent 40e2dcba05
commit f91c34069e
2 changed files with 19 additions and 18 deletions

View File

@@ -85,7 +85,7 @@ function! FugitiveHead(...) abort
if empty(dir)
return ''
endif
return fugitive#repo(dir).head(a:0 ? a:1 : 0)
return fugitive#Head(a:0 ? a:1 : 0, dir)
endfunction
function! FugitiveStatusline(...) abort