On Monday 31 August 2009, Patrick Aljord wrote: > On Sun, Aug 30, 2009 at 6:30 PM, Olivier Goffart wrote: > > Le Sunday 30 August 2009, Christoph Feck a écrit : > >> 18. hope that I don't forget to switch back to a different branch before > >> I apply/commit my next fix > > > > This is the "bad faith" I was refering to earlier. > > Technical problem might happen, but I don't see them that often. > > You can use that to always know what branch you're in: > > export PS1="\\w:\$(git branch 2>/dev/null | grep '^*' | colrm 1 2)\$ " Or a faster version which doesn't fire off the (much slower, on huge repositories) git branch: http://kdedevelopers.org/node/4051 -- David Faure, faure@kde.org, sponsored by Nokia to work on KDE, Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).