We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5be8b0 commit a68d995Copy full SHA for a68d995
1 file changed
libvcs/parse/git.py
@@ -254,9 +254,6 @@ class GitBaseURL(URLProtocol, SkipDefaultFieldsReprMixin):
254
# Decoration
255
suffix: Optional[str] = None
256
257
- # commit-ish (rev): tag, branch, ref
258
- rev: Optional[str] = None
259
-
260
matcher: Optional[str] = None
261
matchers = MatcherRegistry = MatcherRegistry(
262
_matchers={m.label: m for m in DEFAULT_MATCHERS}
@@ -345,6 +342,9 @@ def to_url(self) -> str:
345
342
class GitURL(GitBaseURL, URLProtocol, SkipDefaultFieldsReprMixin):
346
343
"""Batteries included URL Parser. Supports git(1) and pip URLs."""
347
344
+ # commit-ish (rev): tag, branch, ref
+ rev: Optional[str] = None
+
348
349
_matchers={m.label: m for m in [*DEFAULT_MATCHERS, *PIP_DEFAULT_MATCHERS]}
350
)
0 commit comments