MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / computeContentHash

Function computeContentHash

source code/utils/commitAttribution.ts:246–248  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

244 * Compute SHA-256 hash of content.
245 */
246export function computeContentHash(content: string): string {
247 return createHash('sha256').update(content).digest('hex')
248}
249
250/**
251 * Normalize file path to relative path from cwd for consistent tracking.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected