mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-10 04:23:46 -05:00
Remove unused keys from :GBrowse options
I was hoping to one day introduce a new, backwards incompatible API here, but adoption has gotten widespread enough that I think we're stuck with it. So let's go ahead and clean up some cruft that I've verified is not in use in any known plugin. A couple of plugins do use repo.rev_parse(), but only inside conditionals should never be triggered.
This commit is contained in:
@@ -6966,7 +6966,7 @@ function! fugitive#BrowseCommand(line1, count, range, bang, mods, arg, args) abo
|
|||||||
let line1 = +matchstr(blame[0], blame_regex)
|
let line1 = +matchstr(blame[0], blame_regex)
|
||||||
let line2 = +matchstr(blame[-1], blame_regex)
|
let line2 = +matchstr(blame[-1], blame_regex)
|
||||||
else
|
else
|
||||||
call s:throw("Can't browse to uncommitted change")
|
throw "fugitive: can't browse to uncommitted change"
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
@@ -6995,10 +6995,8 @@ function! fugitive#BrowseCommand(line1, count, range, bang, mods, arg, args) abo
|
|||||||
|
|
||||||
let opts = {
|
let opts = {
|
||||||
\ 'git_dir': dir,
|
\ 'git_dir': dir,
|
||||||
\ 'dir': dir,
|
\ 'repo': {'git_dir': dir},
|
||||||
\ 'repo': fugitive#repo(dir),
|
|
||||||
\ 'remote': raw,
|
\ 'remote': raw,
|
||||||
\ 'revision': 'No longer provided',
|
|
||||||
\ 'remote_name': remote,
|
\ 'remote_name': remote,
|
||||||
\ 'commit': commit,
|
\ 'commit': commit,
|
||||||
\ 'path': path,
|
\ 'path': path,
|
||||||
@@ -7015,7 +7013,7 @@ function! fugitive#BrowseCommand(line1, count, range, bang, mods, arg, args) abo
|
|||||||
endfor
|
endfor
|
||||||
|
|
||||||
if empty(url)
|
if empty(url)
|
||||||
call s:throw("No GBrowse handler installed for '".raw."'")
|
throw "fugitive: no GBrowse handler installed for '".raw."'"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
return s:BrowserOpen(url, a:mods, a:bang)
|
return s:BrowserOpen(url, a:mods, a:bang)
|
||||||
|
|||||||
Reference in New Issue
Block a user