mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-16 07:13:52 -05:00
Add missing function
This commit is contained in:
@@ -433,7 +433,12 @@ function! s:DirCommitFile(path) abort
|
|||||||
if empty(vals)
|
if empty(vals)
|
||||||
return ['', '', '']
|
return ['', '', '']
|
||||||
endif
|
endif
|
||||||
return [vals[1], (vals[2] =~# '^.$' ? ':' : '') . vals[2], vals[3]]
|
return vals[1:3]
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! s:DirRev(url) abort
|
||||||
|
let [dir, commit, file] = s:DirCommitFile(a:url)
|
||||||
|
return [dir, (commit =~# '^.$' ? ':' : '') . commit . substitute(file, '^/', ':', '')]
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! fugitive#Path(url) abort
|
function! fugitive#Path(url) abort
|
||||||
|
|||||||
Reference in New Issue
Block a user