MCPcopy Index your code
hub / github.com/commitizen-tools/commitizen / merge_branch

Method merge_branch

tests/utils.py:78–83  ·  view source on GitHub ↗

Merge given branch into current branch.

(self, branch: str)

Source from the content-addressed store, hash-verified

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."""

Calls 1

tickMethod · 0.95