Skip to content

Commit

Permalink
Support all git index locations
Browse files Browse the repository at this point in the history
  • Loading branch information
tpope committed Mar 17, 2012
1 parent a6982fe commit 0b1625a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugin/fugitive.vim
Expand Up @@ -2090,7 +2090,10 @@ endfunction

augroup fugitive_files
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 BufReadCmd fugitive://**//[0-3]/** exe s:BufReadIndexFile()
autocmd BufWriteCmd fugitive://**//[0-3]/** exe s:BufWriteIndexFile()
Expand Down

3 comments on commit 0b1625a

@lucapette
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this commit is not compatible with set autochdir . It breaks the - mapping in the :Gstatus preview window. Where it breaks means that you can stage/unstage files but after you hit - for the first time the preview window goes empty and you're not able to do anything else. Just quit the preview window.

I've removed the option for now because the preview window is vital for me and autochdir is not. But is the incompatibility expected? I'm not able to say that...

@lucapette
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After two hours without autochdir I have to say I really need it. Should I open a real issue or the previous description is enough? Please tell me if you need more information or if I have to do something specific, I love your plugins and I really want to help.

@tpope
Copy link
Owner Author

@tpope tpope commented on 0b1625a Mar 29, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please open an issue, thanks.

Please sign in to comment.