Skip to content

Commit beb243a

Browse files
Merge pull request #104 from problame/patch-1
docs: improve `smv_released_pattern` section
2 parents 2bb693e + c8d874b commit beb243a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/configuration.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,18 @@ Here are some examples:
6868

6969
.. code-block:: python
7070
71-
smv_released_pattern = r'^tags/.*$' # Tags only
72-
smv_released_pattern = r'^heads/\d+\.\d+$' # Branches like "2.1"
73-
smv_released_pattern = r'^(tags/.*|heads/\d+\.\d+)$' # Branches like "2.1" and all tags
74-
smv_released_pattern = r'^(heads|remotes/[^/]+)/(?!:master).*$' # Everything except master branch
71+
smv_released_pattern = r'^refs/tags/.*$' # Tags only
72+
smv_released_pattern = r'^refs/heads/\d+\.\d+$' # Branches like "2.1"
73+
smv_released_pattern = r'^refs/(tags/.*|heads/\d+\.\d+)$' # Branches like "2.1" and all tags
74+
smv_released_pattern = r'^refs/(tags|heads|remotes/[^/]+)/(?!master).*$' # Everything except master branch
7575
7676
.. note::
7777

7878
To list all refnames , you can use:
7979

8080
.. code-block:: bash
8181
82-
git for-each-ref --format "%(refname)" | sed 's/^refs\///g'
82+
git for-each-ref --format "%(refname)"
8383
8484
8585
Output Directory Format

0 commit comments

Comments
 (0)