MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / localCommitCommand

Function localCommitCommand

graph-ui/src/impact/selection-impact.ts:236–240  ·  view source on GitHub ↗
(hash: string, ...paths: string[])

Source from the content-addressed store, hash-verified

234
235/** Display-only local command; quote even shell metacharacters in Git filenames. */
236export function localCommitCommand(hash: string, ...paths: string[]): string {
237 if (!/^(?:[a-f0-9]{40}|[a-f0-9]{64})$/.test(hash)) return 'Commit hash unavailable';
238 const quote = (value: string): string => `'${value.replaceAll("'", "'\\''")}'`;
239 return `git show ${hash} -- ${paths.map(quote).join(' ')}`;
240}
241
242export async function fetchSelectionImpact(project: string, target: SelectionImpactTarget,
243 signal?: AbortSignal, refresh = false, doFetch: typeof fetch = globalThis.fetch): Promise<SelectionImpactReply> {

Callers 2

SelectionImpactWidgetFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected