(message: string, cwd: string)
| 16 | } |
| 17 | |
| 18 | export async function commit(message: string, cwd: string) { |
| 19 | const gitCmd = await spawn( |
| 20 | "git", |
| 21 | ["commit", "-m", message, "--allow-empty"], |
| 22 | { cwd } |
| 23 | ); |
| 24 | return gitCmd.code === 0; |
| 25 | } |
| 26 | |
| 27 | export async function getAllTags(cwd: string): Promise<Set<string>> { |
| 28 | const gitCmd = await spawn("git", ["tag"], { cwd }); |
no outgoing calls