tag¶

For git-tag(1).

Overview¶

Manage git tags using GitTagManager (collection-level) and GitTagCmd (per-tag operations).

Example¶

from libvcs.cmd.git import Git

git = Git(path='/path/to/repo')

# Create a tag
git.tags.create(name='v1.0.0', message='Release 1.0.0')

# List all tags
tags = git.tags.ls()

# Filter tags
release_tags = git.tags.ls(pattern='v*')

# Get a specific tag and operate on it
tag = git.tags.get(tag_name='v1.0.0')
tag.show()
tag.delete()

API Reference¶

class libvcs.cmd.git.GitTagManager
¶

Bases: object

Traverse and manage git tags with ORM-like filtering via QueryList.

class libvcs.cmd.git.GitTagCmd
¶

Bases: object

Run git commands targeting a specific tag.