commit 42e0208276bccb998ed38294b9a43ffbeed85afb (tree)
parent 6ebcc05312a5d94599e1463fbb1eccf3b78492ec
Author: Tim Pope <code@tpope.net>
Date: Thu, 22 Oct 2009 22:22:17 -0400
Run autocommands after writing to index
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim
@@ -1093,6 +1093,7 @@ function! s:BufWriteIndexFile()
let error = system(s:repo().git_command('update-index','--index-info').' < '.tmp)
if v:shell_error == 0
setlocal nomodified
+ silent execute 'doautocmd BufWritePost '.s:fnameescape(expand('%:p'))
call s:ReloadIndex()
return ''
else