( error: unknown, )
| 121 | } |
| 122 | |
| 123 | function isExecError( |
| 124 | error: unknown, |
| 125 | ): error is { code?: number; stdout?: string } { |
| 126 | return ( |
| 127 | typeof error === "object" && |
| 128 | error !== null && |
| 129 | ("code" in error || "stdout" in error) |
| 130 | ); |
| 131 | } |
| 132 | |
| 133 | export async function getGitDiffSnapshot(): Promise<GitDiffSnapshot> { |
| 134 | try { |
no outgoing calls
no test coverage detected