mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-10-11 23:50:19 +08:00
Run autocommands after writing to index
This commit is contained in:
1 parent
6ebcc05312
commit
42e0208276
1 file changed
+1
@@ -1093,6 +1093,7 @@ function! s:BufWriteIndexFile()
|
|||||||
let error = system(s:repo().git_command('update-index','--index-info').' < '.tmp)
|
let error = system(s:repo().git_command('update-index','--index-info').' < '.tmp)
|
||||||
if v:shell_error == 0
|
if v:shell_error == 0
|
||||||
setlocal nomodified
|
setlocal nomodified
|
||||||
|
silent execute 'doautocmd BufWritePost '.s:fnameescape(expand('%:p'))
|
||||||
call s:ReloadIndex()
|
call s:ReloadIndex()
|
||||||
return ''
|
return ''
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in new issue
Block a user