mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-08 11:33:47 -05:00
Expire b:git_dir on buffer rename
This commit is contained in:
@@ -690,6 +690,7 @@ augroup fugitive
|
||||
|
||||
autocmd BufNewFile,BufReadPost * call FugitiveDetect(+expand('<abuf>'), 0)
|
||||
autocmd FileType netrw call FugitiveDetect(+expand('<abuf>'), 0)
|
||||
autocmd BufFilePost * unlet! b:git_dir
|
||||
|
||||
autocmd FileType git
|
||||
\ call fugitive#MapCfile()
|
||||
|
||||
Reference in New Issue
Block a user