(value: string)
| 236 | export 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 |
nothing calls this directly
no outgoing calls
no test coverage detected