Skip to content

Commit

Permalink
Support more git index locations
Browse files Browse the repository at this point in the history
Matches:

    .git/index
    .git/index.lock
    .git/modules/submodule/index
    .git/modules/submodule/index.lock
  • Loading branch information
guns authored and tpope committed Mar 17, 2012
1 parent 0949a2e commit a6982fe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugin/fugitive.vim
Expand Up @@ -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()
Expand Down

0 comments on commit a6982fe

Please sign in to comment.