mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 05:13:53 -05:00
Remove redundant "dir" keys from dictionaries
This commit is contained in:
@@ -609,8 +609,6 @@ function! fugitive#PrepareDirEnvGitFlagsArgs(...) abort
|
||||
if type(cmd[i]) == type({})
|
||||
if has_key(cmd[i], 'git_dir')
|
||||
let dir = cmd[i].git_dir
|
||||
elseif has_key(cmd[i], 'dir')
|
||||
let dir = cmd[i].dir
|
||||
endif
|
||||
if has_key(cmd[i], 'git')
|
||||
let git = cmd[i].git
|
||||
@@ -3741,7 +3739,6 @@ function! fugitive#Command(line1, line2, range, bang, mods, arg) abort
|
||||
\ 'git': options.git,
|
||||
\ 'flags': flags,
|
||||
\ 'args': args,
|
||||
\ 'dir': options.git_dir,
|
||||
\ 'git_dir': options.git_dir,
|
||||
\ 'cwd': s:UserCommandCwd(dir),
|
||||
\ 'filetype': 'git',
|
||||
@@ -5712,7 +5709,6 @@ function! s:GrepSubcommand(line1, line2, range, bang, mods, options) abort
|
||||
\ 'git': a:options.git,
|
||||
\ 'flags': a:options.flags,
|
||||
\ 'args': cmd + args,
|
||||
\ 'dir': s:GitDir(a:options),
|
||||
\ 'git_dir': s:GitDir(a:options),
|
||||
\ 'cwd': s:UserCommandCwd(a:options),
|
||||
\ 'filetype': 'git',
|
||||
@@ -6883,7 +6879,6 @@ function! s:BlameSubcommand(line1, count, range, bang, mods, options) abort
|
||||
\ 'git': a:options.git,
|
||||
\ 'flags': a:options.flags,
|
||||
\ 'args': [a:options.subcommand] + a:options.subcommand_args,
|
||||
\ 'dir': dir,
|
||||
\ 'git_dir': dir,
|
||||
\ 'cwd': s:UserCommandCwd(dir),
|
||||
\ 'filetype': (raw ? 'git' : 'fugitiveblame'),
|
||||
|
||||
Reference in New Issue
Block a user