libgit2 / libgit2/pygit2

Help Required: what is git tag -v <<tag_id>> equivalent API

Open
#913 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.