MCPcopy Index your code
hub / github.com/simstudioai/sim / buildFileContentHash

Function buildFileContentHash

apps/sim/connectors/gitlab/gitlab.ts:267–269  ·  view source on GitHub ↗

* Builds the change-detection hash for a repository file. The git blob SHA is * content-addressable, so it changes exactly when the file content changes — and * it is available both on the tree listing (`tree entry.id`) and the file fetch * (`blob_id`), so the stub and hydrated document hash iden

(projectId: string, path: string, blobSha: string)

Source from the content-addressed store, hash-verified

265 * content fetch during listing.
266 */
267function buildFileContentHash(projectId: string, path: string, blobSha: string): string {
268 return `gitlab:file:${projectId}:${path}:${blobSha}`
269}
270
271/**
272 * Builds the web UI URL for a repository file at a given ref.

Callers 3

treeEntryToStubFunction · 0.70
skippedForSizeFunction · 0.70
fileToDocumentFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected