mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-09 20:13:46 -05:00
Drop noautowrite rendered irrelevant by system()
This commit is contained in:
@@ -1609,7 +1609,6 @@ endfunction
|
|||||||
function! s:ReplaceCmd(cmd,...) abort
|
function! s:ReplaceCmd(cmd,...) abort
|
||||||
let fn = bufname('')
|
let fn = bufname('')
|
||||||
let tmp = tempname()
|
let tmp = tempname()
|
||||||
let aw = &autowrite
|
|
||||||
let prefix = ''
|
let prefix = ''
|
||||||
try
|
try
|
||||||
if a:0 && a:1 != ''
|
if a:0 && a:1 != ''
|
||||||
@@ -1620,10 +1619,8 @@ function! s:ReplaceCmd(cmd,...) abort
|
|||||||
let prefix = 'env GIT_INDEX_FILE='.s:shellesc(a:1).' '
|
let prefix = 'env GIT_INDEX_FILE='.s:shellesc(a:1).' '
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
set noautowrite
|
|
||||||
call system(prefix.a:cmd.' > '.tmp)
|
call system(prefix.a:cmd.' > '.tmp)
|
||||||
finally
|
finally
|
||||||
let &autowrite = aw
|
|
||||||
if exists('old_index')
|
if exists('old_index')
|
||||||
let $GIT_INDEX_FILE = old_index
|
let $GIT_INDEX_FILE = old_index
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user