MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / computeContentHash

Function computeContentHash

src/utils/commitAttribution.ts:245–247  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected