I use this Python library to build a plug-in for gEdit which shows you the git branch of the file being edited.<p><a href="https://github.com/dfuenzalida/gedit-git-branch-statusbar" rel="nofollow">https://github.com/dfuenzalida/gedit-git-branch-statusbar</a>