Skip to content

Expose current checked out tag #5

Open
@delthas

Description

@delthas

Is your feature request related to a problem? Please describe.

I often check out different tags in my projects to deploy them with different versions for testing. When I have a tag checked out, I'd really like to see the tag name in my prompt instead of a commit hash (that I never remember).

Describe the solution you'd like

I'd like git-info to expose the tag name of the current checked out tag (if a tag is checked out, so when in checked out HEAD state, but specifically when HEAD is pointing to a tag).

Describe alternatives you've considered

I suppose I could somehow do that manually by adding some script in my prompt to call git and check every time whether I have a tag checked out and append that to my prompt, but it's hacky and I think it could be useful to have that in git-info for other users.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions