motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit af8b352dbf7eef9cbac6d27f409149ee4279c0ec (tree)
parent b81c59bd6adb2a1aac7d3865eb4ee0f6e51eb29c
Author: Tim Pope <code@tpope.net>
Date:   Wed, 11 May 2022 00:04:28 -0400

Remove redundant "dir" keys from dictionaries

Diffstat:
Mautoload/fugitive.vim | 5-----
1 file changed, 0 insertions(+), 5 deletions(-)

diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim @@ -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'),