mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-10 04:23:46 -05:00
Support more git index locations
Matches:
.git/index
.git/index.lock
.git/modules/submodule/index
.git/modules/submodule/index.lock
This commit is contained in:
@@ -2090,8 +2090,7 @@ endfunction
|
||||
|
||||
augroup fugitive_files
|
||||
autocmd!
|
||||
autocmd BufReadCmd *.git/index exe s:BufReadIndex()
|
||||
autocmd BufReadCmd *.git/*index*.lock exe s:BufReadIndex()
|
||||
autocmd BufReadCmd *.git/{,**/}index{,.lock} exe s:BufReadIndex()
|
||||
autocmd FileReadCmd fugitive://**//[0-3]/** exe s:FileRead()
|
||||
autocmd BufReadCmd fugitive://**//[0-3]/** exe s:BufReadIndexFile()
|
||||
autocmd BufWriteCmd fugitive://**//[0-3]/** exe s:BufWriteIndexFile()
|
||||
|
||||
Reference in New Issue
Block a user