Skip to content

Commit b750bfa

Browse files
committed
Use a dictionary instead of many small variables
See #48 (comment)
1 parent f981eed commit b750bfa

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

plugin/gv.vim

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,10 @@ function! s:list(fugitive_repo, log_opts)
251251
let git_log_cmd = FugitiveShellCommand(git_args, a:fugitive_repo)
252252

253253
let repo_short_name = fnamemodify(a:fugitive_repo.tree(), ':t')
254-
let b:gv_opts = a:log_opts
255-
let b:gv_repo_short_name = repo_short_name
254+
let b:gv = {
255+
\ 'opts': a:log_opts,
256+
\ 'repo_short_name': repo_short_name,
257+
\ }
256258
let bufname = repo_short_name.' '.join(a:log_opts)
257259
silent exe (bufexists(bufname) ? 'buffer' : 'file') fnameescape(bufname)
258260

0 commit comments

Comments
 (0)