MCPcopy
hub / github.com/codeaashu/claude-code / 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 1

updateMethod · 0.65

Tested by

no test coverage detected