Merge given branch into current branch.
(self, branch: str)
| 76 | raise exceptions.GitCommandError(c.err) |
| 77 | |
| 78 | def merge_branch(self, branch: str) -> None: |
| 79 | """Merge given branch into current branch.""" |
| 80 | c = cmd.run(["git", "merge", branch]) |
| 81 | if c.return_code != 0: |
| 82 | raise exceptions.GitCommandError(c.err) |
| 83 | self.tick() |
| 84 | |
| 85 | def get_current_branch(self) -> str: |
| 86 | """Get current git branch name.""" |