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.16k stars 340 forks source link

Add ability to get tag of current head #54

Open btruhand opened 7 years ago

btruhand commented 7 years ago

I wanted to add ability to get the tag at HEAD (not the closest tag). Nothing big

AaronDMarasco-VSI commented 7 years ago

I haven't looked at the source lately, but if the "check if git (c726016)" isn't already in there, it should probably be at the beginning of everything and just shortcut when not.

btruhand commented 7 years ago

@AaronDMarasco-VSI Thanks for that input. Added it in to do some short-circuting. Sorry for the late reply didn't take a look at it past few days haha

dafeder commented 5 years ago

There is a PR already adding tags here: #36 - suggest that the git checking stuff be separated into its own PR to keep things focused :)