mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-16 07:13:52 -05:00
Support all git index locations
This commit is contained in:
@@ -2090,7 +2090,10 @@ endfunction
|
|||||||
|
|
||||||
augroup fugitive_files
|
augroup fugitive_files
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd BufReadCmd *.git/{,**/}index{,.lock} exe s:BufReadIndex()
|
autocmd BufReadCmd index{,.lock}
|
||||||
|
\ if s:is_git_dir(expand('<amatch>:p:h')) |
|
||||||
|
\ exe s:BufReadIndex() |
|
||||||
|
\ endif
|
||||||
autocmd FileReadCmd fugitive://**//[0-3]/** exe s:FileRead()
|
autocmd FileReadCmd fugitive://**//[0-3]/** exe s:FileRead()
|
||||||
autocmd BufReadCmd fugitive://**//[0-3]/** exe s:BufReadIndexFile()
|
autocmd BufReadCmd fugitive://**//[0-3]/** exe s:BufReadIndexFile()
|
||||||
autocmd BufWriteCmd fugitive://**//[0-3]/** exe s:BufWriteIndexFile()
|
autocmd BufWriteCmd fugitive://**//[0-3]/** exe s:BufWriteIndexFile()
|
||||||
|
|||||||
Reference in New Issue
Block a user