jimeh / git-aware-prompt

Display current Git branch name in your terminal prompt when in a Git working directory.
Creative Commons Zero v1.0 Universal
2.15k stars 340 forks source link

Add tag detection #36

Open dafeder opened 8 years ago

dafeder commented 8 years ago

Just a little extra code here to add "tags/my-tag" instead of just "detached" if you're on an exact tag.

dafeder commented 7 years ago

Looks like this is a duplicate of #42

dafeder commented 5 years ago

Was not working for non-annotated tags. I've fixed and rebased against latest master if anyone is using this.