File: git-tag.rst

package info (click to toggle)
python-pygit2 1.18.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,720 kB
  • sloc: ansic: 12,584; python: 9,337; sh: 205; makefile: 26
file content (25 lines) | stat: -rw-r--r-- 727 bytes parent folder | download | duplicates (4)
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