Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works
Code Observatory / Source
Resolve the repository
With no repository named it returns an empty list, and the search then spans the whole index. Scoping is opt-in.
PINNED SOURCE Copied from the repository at this commit. Source, not an execution.
PHAROS at 975a38dMIT license
resolve_repositoriesbackend/app/codeintel/context.py, lines 82–88Open source
def resolve_repositories(db: Session, ref: str | None) -> list[Repository]: if ref is None: return [] repos = repositories_matching(db, ref) if not repos: raise RepositoryNotFound(f"no indexed repository matches {ref!r}") return reposWhere this comes from
- Commit
975a38d5d17839c26ee219295a5be6ac66b6d910- File
backend/app/codeintel/context.py- Lines
- 82–88
- Git blob
0c4a7dd4639651a5c13142d168630e344439f22a- License
- MIT, © 2024–2026 Pharos Contributors. Notice
Read it on GitHub at this commit
Check it yourself
From a clone of the repository, the first command prints the blob above and the second prints these lines.
git rev-parse 975a38d:backend/app/codeintel/context.py
git show 975a38d:backend/app/codeintel/context.py | sed -n '82,88p'