Skip to content

Commit f593de9

Browse files
committed
wip GBrowse api
1 parent c4a38c9 commit f593de9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

autoload/fugitive.vim

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7561,8 +7561,9 @@ function! fugitive#BrowseCommand(line1, count, range, bang, mods, arg, ...) abor
75617561
endif
75627562
endif
75637563
endif
7564+
let commit_id = fugitive#RevParse(empty(ref) ? 'HEAD' : ref, dir)
75647565
if empty(commit)
7565-
let commit = fugitive#RevParse(empty(ref) ? 'HEAD' : ref, dir)
7566+
let commit = commit_id
75667567
endif
75677568
endif
75687569

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

0 commit comments

Comments
 (0)