1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
**********************************************************************
git-tag
**********************************************************************
----------------------------------------------------------------------
Showing all tags
----------------------------------------------------------------------
.. code-block:: bash
$ git tag
.. code-block:: python
>>> import re
>>> regex = re.compile('^refs/tags/')
>>> [r for r in repo.references if regex.match(r)]
----------------------------------------------------------------------
References
----------------------------------------------------------------------
- git-tag_.
.. _git-tag: https://www.kernel.org/pub/software/scm/git/docs/git-tag.html
|