djl/vcprompt — pull request #29 by pjv (2012-10-26 00:24:01+00:00)
Title: Git unpushed commits

Adds a new format option -c and token %c which, in a git repo with un-pushed commits on the current branch, will output a symbol (defaults to '^') and the number of un-pushed commits. GIT ONLY.

here's what my prompt looks like using this option when my local master branch is 1 commit ahead of origin:

`pjv-mbp:test2 |git| master ^1 [9e77273] * `