Skip to content

Commit

Permalink
wip GBrowse api
Browse files Browse the repository at this point in the history
  • Loading branch information
tpope committed Jan 17, 2024
1 parent c4a38c9 commit f593de9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion autoload/fugitive.vim
Expand Up @@ -7561,8 +7561,9 @@ function! fugitive#BrowseCommand(line1, count, range, bang, mods, arg, ...) abor
endif
endif
endif
let commit_id = fugitive#RevParse(empty(ref) ? 'HEAD' : ref, dir)
if empty(commit)
let commit = fugitive#RevParse(empty(ref) ? 'HEAD' : ref, dir)
let commit = commit_id
endif
endif

Expand All @@ -7579,6 +7580,8 @@ function! fugitive#BrowseCommand(line1, count, range, bang, mods, arg, ...) abor
\ 'repo': {'git_dir': git_dir},
\ 'remote': raw,
\ 'remote_name': remote,
\ 'starting_ref': empty(ref) ? 'HEAD' : ref,
\ 'commit_id': exists('commit_id') ? commit_id : commit,
\ 'commit': s:UrlEncode(commit),
\ 'path': substitute(s:UrlEncode(path), '%20', ' ', 'g'),
\ 'type': type,
Expand Down

0 comments on commit f593de9

Please sign in to comment.