Help Required: what is git tag -v <<tag_id>> equivalent API
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.7k
- Forks
- 408
- Avg merge
- 2d 57m
- Merged PRs (30d)
- 7
Description
I am trying to get tag (with -v) information using pygit2 but unable to describe it which should be equivalent to below command:
git tag -v 798cf672923cd7b2285ad601228e62f7
Sample Output:
object d7fab628e2698d6d413c92c81fd0fdf096567a7a
type commit
tag 798cf672923cd7b2285ad601228e62f7
tagger ci <ci@internal.com> 1558951734 +0000
mod1_version=release-5.0.0.146; mod2_version=1.1.11.42-RELEASE; mod3_version=0.9.9.0 war_version=798cf672923cd7b2285ad601228e62f7;
Please help pointing to the document or sample.
Tried below, but it just return tag id
print(repo.describe(committish=self.tag_id, describe_strategy=pygit2.GIT_DESCRIBE_TAGS))
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the pygit2 repo.describe entry point and compare its GIT_DESCRIBE_TAGS behavior with the documented git tag -v command. Check the repository documentation for an API or sample covering annotated tag information and verification; done means the equivalent API or a clear documentation pointer is identified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, python
- Domain
- tooling
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100