Hi Jan, On Mon, Mar 25, 2013 at 03:36:38PM +0100, Jan Stolarek wrote: > I've been reading the ghc-devs list for quite some time now and I noticed > that it often happens > that one of the developers pushes the changes to the ghc.git repo but forgets > to push the > corresponding changes to the testsuite, which results in people trying to > figure out why their > validation fails.
I quite like having the shell prompt indicating if there're uncommited changes. A "clean" repo just displays the branch name: dan@machine ~/.../somePath [BranchName]> With uncommited changes: dan@machine ~/.../somePath [BranchName *]> Something stashed: dan@machine ~/.../somePath [BranchName $]> Untracked files: dan@machine ~/.../somePath [BranchName %]> The prompt relevant settings for the bash shell (.bashrc) are: # which kind of state should be displayed export GIT_PS1_SHOWDIRTYSTATE=1 export GIT_PS1_SHOWSTASHSTATE=1 export GIT_PS1_SHOWUNTRACKEDFILES=1 # the prompt export PS1='\u@\h \w$(__git_ps1 " [%s]")> ' The git relevant part of the prompt is: $(__git_ps1 " [%s]") Greetings, Daniel _______________________________________________ ghc-devs mailing list [email protected] http://www.haskell.org/mailman/listinfo/ghc-devs
