mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-10-13 00:20:18 +08:00
Rename FugitiveFilename() to FugitivePath()
This commit is contained in:
1 parent
2a817bb53a
commit
1988518904
2 files changed
+3
-3
No files matched your search
@@ -435,7 +435,7 @@ function! s:DirCommitFile(path) abort
|
||||
return [vals[1], (vals[2] =~# '^.$' ? ':' : '') . vals[2], vals[3]]
|
||||
endfunction
|
||||
|
||||
function! fugitive#Filename(url) abort
|
||||
function! fugitive#Path(url) abort
|
||||
let [dir, commit, file] = s:DirCommitFile(a:url)
|
||||
if len(dir)
|
||||
return s:PlatformSlash(FugitiveTreeForGitDir(dir) . file)
|
||||
|
||||
Reference in new issue
Block a user