Return True if path looks like a remote git URL rather than a local path.
(path: str)
| 12 | |
| 13 | |
| 14 | def is_git_url(path: str) -> bool: |
| 15 | """Return True if path looks like a remote git URL rather than a local path.""" |
| 16 | return path.startswith(_GIT_URL_SCHEMES) or _SCP_GIT_URL_RE.match(path) is not None |
| 17 | |
| 18 | |
| 19 | def resolve_chunk(chunks: list[Chunk], file_path: str, line: int) -> Chunk | None: |
no outgoing calls