tpope/vim-fugitive — pull request #219 by elien122 (2012-07-03 16:54:46+00:00)
Title: Show status flag of repo in statusline

This is customizing the fugitive statusline for showing status flags which indicate current repository status.
[like $(__git_ps1) of git-completion.bash in linux shell.]
(http://en.newinstance.it/2010/05/23/git-autocompletion-and-enhanced-bash-prompt/)

I wrote this tweak a couple of month ago just for my taste.
By change i stopped by your github site, and i saw someone who needs this feature.
(issue #205, #197)

I hope this will help.