MCPcopy
hub / github.com/MinishLab/semble / is_git_url

Function is_git_url

src/semble/utils.py:14–16  ·  view source on GitHub ↗

Return True if path looks like a remote git URL rather than a local path.

(path: str)

Source from the content-addressed store, hash-verified

12
13
14def 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
19def resolve_chunk(chunks: list[Chunk], file_path: str, line: int) -> Chunk | None:

Callers 9

_get_indexFunction · 0.90
_compute_cache_keyMethod · 0.90
_build_and_trackMethod · 0.90
_evict_if_staleMethod · 0.90
_build_indexFunction · 0.90
get_validated_cacheFunction · 0.90
test_is_git_urlFunction · 0.90

Calls

no outgoing calls

Tested by 1

test_is_git_urlFunction · 0.72