Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works
Code Observatory / function
git_blob_sha
codeintel.source.git_blob_sha
PINNED SOURCE Source and edges from the index at this commit. An execution appears only where one was recorded.
PHAROS at 975a38dMIT license
Around this symbol
Search all symbolsLoading
| Symbol | File | Resolved by |
|---|---|---|
| _resolve_one | source.py | same file |
| Symbol | File | Resolved by |
|---|---|---|
| source | source.py | same file |
codeintel.source.git_blob_shabackend/app/codeintel/source.py, lines 85–86Open source
def git_blob_sha(data: bytes) -> str: return hashlib.sha1(b"blob %d\0" % len(data) + data).hexdigest()What the index recorded
- Signature
def git_blob_sha(data: bytes) -> str:- File
backend/app/codeintel/source.py- Lines
- 85–86
- Parser
- python-ast
- Git blob
c9f05cf7bf871b09919d64e9fdaf8380ecc3df2c- Call sites
- 3 named, 0 resolved, 3 left unlinked
