MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / shortWorkspaceHash

Function shortWorkspaceHash

src/utils/workspace-identity.ts:31–33  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

29}
30
31export function shortWorkspaceHash(input: string): string {
32 return createHash('sha256').update(input).digest('hex').slice(0, 12);
33}
34
35export function workspaceKeyForRoot(workspaceRoot: string): string {
36 return `${workspaceNameForRoot(workspaceRoot)}-${shortWorkspaceHash(workspaceRoot)}`;

Callers 3

compactWorkspaceKeyFunction · 0.90
workspaceKeyForRootFunction · 0.85

Calls 1

updateMethod · 0.80

Tested by

no test coverage detected