(
branch: string,
{
force,
includeTags,
cwd,
}: { force?: boolean; includeTags?: boolean; cwd: string }
)
| 14 | }; |
| 15 | |
| 16 | export const push = async ( |
| 17 | branch: string, |
| 18 | { |
| 19 | force, |
| 20 | includeTags, |
| 21 | cwd, |
| 22 | }: { force?: boolean; includeTags?: boolean; cwd: string } |
| 23 | ) => { |
| 24 | await execWithOutput( |
| 25 | "git", |
| 26 | [ |
| 27 | "push", |
| 28 | "origin", |
| 29 | `HEAD:${branch}`, |
| 30 | includeTags && "--tags", |
| 31 | force && "--force", |
| 32 | ].filter((x): x is string => !!x), |
| 33 | { cwd } |
| 34 | ); |
| 35 | }; |
| 36 | |
| 37 | export const switchToMaybeExistingBranch = async ( |
| 38 | branch: string, |
nothing calls this directly
no test coverage detected