Create a new branch.
(self, name: str)
| 64 | self.tick() |
| 65 | |
| 66 | def create_branch(self, name: str) -> None: |
| 67 | """Create a new branch.""" |
| 68 | c = cmd.run(["git", "branch", name]) |
| 69 | if c.return_code != 0: |
| 70 | raise exceptions.GitCommandError(c.err) |
| 71 | |
| 72 | def switch_branch(self, branch: str) -> None: |
| 73 | """Switch to given branch.""" |
no outgoing calls