tpope/vim-fugitive — pull request #183 by scrooloose (2012-04-02 13:58:22+00:00)
Title: make fugitive commands available in nerdtree bufs

Previously s:Detect() wasnt getting called for nerdtree buffers. I have added two autocmd events to nerdtree - NERDTreeInit and NERDTreeNewRoot. These are called when a tree is created, and when the user changes the root.

Catch these events and call s:Detect() with the tree root path.