deb-python-pygit2/docs/recipes/git-tag.rst
2013-07-05 20:14:33 -04:00

25 lines
725 B
ReStructuredText

**********************************************************************
git-tag
**********************************************************************
----------------------------------------------------------------------
Showing all tags
----------------------------------------------------------------------
.. code-block:: bash
$> git tag
.. code-block:: python
>>> regex = re.compile('^refs/tags')
>>> filter(lambda r: regex.match(r), repo.listall_references())
----------------------------------------------------------------------
References
----------------------------------------------------------------------
- git-tag_.
.. _git-tag: https://www.kernel.org/pub/software/scm/git/docs/git-tag.html