Skip to content

Commit

Permalink
added changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
devanshshukla99 committed Jul 22, 2024
1 parent 13824f5 commit d45a443
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 7 additions & 0 deletions docs/changes/80.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Added regex support for selecting and excluding branches and tags.
Now, any branch can be selected by mentioning it in ``--branch``/ ``--b`` and any can be excluded by adding a ``-``
infront of the branch/tag name in the argument.

Suppose there are 3 branches and tags: ``main, v1.0, v2.0``.
The argument ``--branch main,-v*`` will select ``main`` and will exclude ``v1.0`` and will exclude ``v2.0``.
Similarly, the argument ``--branch -main,v*`` will select ``v1.0`` and ``v2.0`` and will exclude ``main``.
1 change: 0 additions & 1 deletion sphinx_versioned/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ def __init__(self, config: dict) -> None:
self._lookup_branch = {x.name: x for x in self._all_branches}

self._select_exclude_branches()
exit(-1)

# if `--force` is supplied with no `--main-branch`, make the `_active_branch` as the `main_branch`
if not self.main_branch:
Expand Down

0 comments on commit d45a443

Please sign in to comment.