mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-10-02 16:33:52 +08:00
Decouple Head() from repo object
This commit is contained in:
1 parent
40e2dcba05
commit
f91c34069e
2 files changed
+19
-18
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user