MCPcopy Create free account
hub / github.com/BillHuang2001/evogit / rebase_branches

Function rebase_branches

python-impl/evogit/utils/git.py:586–597  ·  view source on GitHub ↗

rebase the current branch on the commit specified by the commit_id.

(config: EvoGitConfig, commit: str)

Source from the content-addressed store, hash-verified

584
585
586def 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
600def continue_merge(config: EvoGitConfig) -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected