rebase the current branch on the commit specified by the commit_id.
(config: EvoGitConfig, commit: str)
| 584 | |
| 585 | |
| 586 | def rebase_branches(config: EvoGitConfig, commit: str) -> None: |
| 587 | """rebase the current branch on the commit specified by the commit_id.""" |
| 588 | # don't check the return code because the rebase may fail |
| 589 | # GIT_EDITOR=true is used to disable the interactive editor |
| 590 | # and accept the default commit message |
| 591 | subprocess.run( |
| 592 | ["git", "rebase", "-q", commit], |
| 593 | cwd=config.git_dir, |
| 594 | env=os.environ | {"GIT_EDITOR": "true"}, |
| 595 | stdout=subprocess.DEVNULL, |
| 596 | stderr=subprocess.DEVNULL, |
| 597 | ) |
| 598 | |
| 599 | |
| 600 | def continue_merge(config: EvoGitConfig) -> None: |
nothing calls this directly
no outgoing calls
no test coverage detected