-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to get tag of current head #54
base: master
Are you sure you want to change the base?
Conversation
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. |
@AaronDMarasco-VSI |
prompt.sh
Outdated
if branch=$(git rev-parse --abbrev-ref HEAD 2> /dev/null); then | ||
if [[ "$branch" == "HEAD" ]]; then | ||
branch='detached*' | ||
echo $is_in_git |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this leftover debug code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yeah it is. Wow I've been running it myself but didn't notice. Guess I forgot to commit the removal. Will do tomorrow
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh forgot to message, I removed the debugging already
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 :) |
I wanted to add ability to get the tag at HEAD (not the closest tag). Nothing big