mirror of
https://github.com/tpope/vim-rhubarb.git
synced 2025-12-07 04:34:27 +08:00
Remove old lowercase API
I don't think this was ever official, so no need to have a formal deprecation cycle.
This commit is contained in:
@@ -69,10 +69,6 @@ function! rhubarb#HomepageForUrl(url) abort
|
|||||||
return substitute(root, '/$', '', '') . '/' . match[4]
|
return substitute(root, '/$', '', '') . '/' . match[4]
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! rhubarb#homepage_for_url(url) abort
|
|
||||||
return rhubarb#HomepageForUrl(a:url)
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
function! s:repo_homepage() abort
|
function! s:repo_homepage() abort
|
||||||
if exists('b:rhubarb_homepage')
|
if exists('b:rhubarb_homepage')
|
||||||
return b:rhubarb_homepage
|
return b:rhubarb_homepage
|
||||||
@@ -223,18 +219,10 @@ function! rhubarb#Request(path, ...) abort
|
|||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! rhubarb#request(...) abort
|
|
||||||
return call('rhubarb#Request', a:000)
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
function! rhubarb#RepoRequest(...) abort
|
function! rhubarb#RepoRequest(...) abort
|
||||||
return rhubarb#Request('repos/%s' . (a:0 && a:1 !=# '' ? '/' . a:1 : ''), a:0 > 1 ? a:2 : {})
|
return rhubarb#Request('repos/%s' . (a:0 && a:1 !=# '' ? '/' . a:1 : ''), a:0 > 1 ? a:2 : {})
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! rhubarb#repo_request(...) abort
|
|
||||||
return call('rhubarb#RepoRequest', a:000)
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
function! s:url_encode(str) abort
|
function! s:url_encode(str) abort
|
||||||
return substitute(a:str, '[?@=&<>%#/:+[:space:]]', '\=submatch(0)==" "?"+":printf("%%%02X", char2nr(submatch(0)))', 'g')
|
return substitute(a:str, '[?@=&<>%#/:+[:space:]]', '\=submatch(0)==" "?"+":printf("%%%02X", char2nr(submatch(0)))', 'g')
|
||||||
endfunction
|
endfunction
|
||||||
@@ -243,10 +231,6 @@ function! rhubarb#RepoSearch(type, q, ...) abort
|
|||||||
return call('rhubarb#Request', ['search/'.a:type.'?per_page=100&q=repo:%s'.s:url_encode(' '.a:q)] + a:000)
|
return call('rhubarb#Request', ['search/'.a:type.'?per_page=100&q=repo:%s'.s:url_encode(' '.a:q)] + a:000)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! rhubarb#repo_search(...) abort
|
|
||||||
return call('rhubarb#RepoSearch', a:000)
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
" Section: Issues
|
" Section: Issues
|
||||||
|
|
||||||
function! s:CompleteAddIssues(response, prefix) abort
|
function! s:CompleteAddIssues(response, prefix) abort
|
||||||
@@ -290,10 +274,6 @@ function! rhubarb#Complete(findstart, base) abort
|
|||||||
endtry
|
endtry
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! rhubarb#omnifunc(findstart, base) abort
|
|
||||||
return rhubarb#Complete(a:findstart, a:base)
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
" Section: Fugitive :GBrowse support
|
" Section: Fugitive :GBrowse support
|
||||||
|
|
||||||
" https://github.com/github/markup
|
" https://github.com/github/markup
|
||||||
@@ -339,8 +319,4 @@ function! rhubarb#FugitiveUrl(...) abort
|
|||||||
return url
|
return url
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! rhubarb#fugitive_url(...) abort
|
|
||||||
return call('rhubarb#FugitiveUrl', a:000)
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
" Section: End
|
" Section: End
|
||||||
|
|||||||
Reference in New Issue
Block a user