( pathSpec: string, mode: "hard" | "soft" | "mixed" = "hard", cwd: string )
| 51 | }; |
| 52 | |
| 53 | export const reset = async ( |
| 54 | pathSpec: string, |
| 55 | mode: "hard" | "soft" | "mixed" = "hard", |
| 56 | cwd: string |
| 57 | ) => { |
| 58 | await execWithOutput("git", ["reset", `--${mode}`, pathSpec], { cwd }); |
| 59 | }; |
| 60 | |
| 61 | export const commitAll = async (message: string, cwd: string) => { |
| 62 | await execWithOutput("git", ["add", "."], { |
nothing calls this directly
no test coverage detected