Switch to given branch.
(self, branch: str)
| 70 | raise exceptions.GitCommandError(c.err) |
| 71 | |
| 72 | def switch_branch(self, branch: str) -> None: |
| 73 | """Switch to given branch.""" |
| 74 | c = cmd.run(["git", "switch", branch]) |
| 75 | if c.return_code != 0: |
| 76 | raise exceptions.GitCommandError(c.err) |
| 77 | |
| 78 | def merge_branch(self, branch: str) -> None: |
| 79 | """Merge given branch into current branch.""" |
no outgoing calls