( git = simpleGit(), )
| 78 | } |
| 79 | |
| 80 | export async function guardAgainstLocalChanges( |
| 81 | git = simpleGit(), |
| 82 | ): Promise<void> { |
| 83 | const status = await git.status(['-s']); |
| 84 | if (status.files.length > 0) { |
| 85 | throw new GitStatusError(status); |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | export async function safeCheckout( |
| 90 | branchOrHash: string, |
no outgoing calls
no test coverage detected