MCPcopy Create free account
hub / github.com/liuup/claude-code-analysis / computeContentHash

Function computeContentHash

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected