Create and checkout a new git branch.
(branch_name: str)
| 373 | |
| 374 | |
| 375 | def create_branch(branch_name: str) -> bool: |
| 376 | """Create and checkout a new git branch.""" |
| 377 | code, _, err = run_git(["checkout", "-b", branch_name]) |
| 378 | if code != 0: |
| 379 | print(f"ERROR: Failed to create branch '{branch_name}': {err}") |
| 380 | return False |
| 381 | return True |
| 382 | |
| 383 | |
| 384 | def commit_files(files: list[Path], message: str) -> bool: |
no test coverage detected