zmalltalker/fish-nuggets — pull request #7 by rickard-von-essen (2013-03-28 17:18:44+00:00)
Title: Improved prompt when in Git/Subversion repos 

# Improvements
1. The prompt will show version information when in a Git/Subversion repository even if current directory is not at the root of the checkout.

2. The Git prompt will show _git describe --tags --always_ e.g. the *tag*, *-*, or just the *short-sha1* when not on a branch.

3. The Git prompt will show the number of commits ahead of the upstream remote branch.

### Git prompt examples:
> rickard@netbook ~/s/fish-shell /OpenBeta_r2-2-g4e3acdc>

In detached mode at a commit following the tag _OpenBeta___r2-2_ with short sha1 _g4e3acdc_.

> rickard@netbook ~/s/auctionsniper /master +1>

On branch master with one commit ahead of the remote branch.