mirror of
https://github.com/tpope/vim-rhubarb.git
synced 2025-12-06 04:04:24 +08:00
Remove ancient guard against legacy 'commit' parameter
People often copy and paste this plugin as a starting point for their own, so let's clean this up.
This commit is contained in:
@@ -265,11 +265,7 @@ function! rhubarb#FugitiveUrl(...) abort
|
||||
elseif path =~# '^\.git\>'
|
||||
return root
|
||||
endif
|
||||
if opts.commit =~# '^\d\=$'
|
||||
return ''
|
||||
else
|
||||
let commit = opts.commit
|
||||
endif
|
||||
let commit = opts.commit
|
||||
if get(opts, 'type', '') ==# 'tree' || opts.path =~# '/$'
|
||||
let url = substitute(root . '/tree/' . commit . '/' . path, '/$', '', 'g')
|
||||
elseif get(opts, 'type', '') ==# 'blob' || opts.path =~# '[^/]$'
|
||||
|
||||
Reference in New Issue
Block a user