mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-08 11:33:47 -05:00
Don't trigger BufWrite during :Git blame
Closes https://github.com/tpope/vim-fugitive/issues/1724
This commit is contained in:
@@ -5709,7 +5709,7 @@ function! s:BlameSubcommand(line1, count, range, bang, mods, options) abort
|
||||
let cmd += [matchstr(s:DirCommitFile(@%)[1], '^\x\x\+$')]
|
||||
elseif empty(files) && !s:HasOpt(flags, '--reverse')
|
||||
let cmd += ['--contents', tempname . '.in']
|
||||
silent execute 'keepalt %write ' . s:fnameescape(tempname . '.in')
|
||||
silent execute 'noautocmd keepalt %write ' . s:fnameescape(tempname . '.in')
|
||||
let delete_in = 1
|
||||
endif
|
||||
let basecmd = [{'git': a:options.git, 'dir': dir}] + ['--literal-pathspecs'] + cmd + ['--'] + (len(files) ? files : [file])
|
||||
|
||||
Reference in New Issue
Block a user