Skip to content

Commit c8d874b

Browse files
problameBurningEnlightenment
authored andcommitted
docs: svm_released_pattern: avoid confusion around ref/ prefix
1 parent 6b29508 commit c8d874b

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'^(tags|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)