Skip to content

How to find the commit referenced by a tag? #87

@linlycode

Description

@linlycode

A tag is a *plumbing.Reference, the hash points to the tag itself, not the commit, how do I find the commit referenced by the tag?

Also, using git I can find the commit hash by git rev-list -n 1 TAG, but go-git doesn't seem have corresponding API

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleIssues/PRs that are marked for closure due to inactivity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions