git_well.git_rebase_add_continue module

class git_well.git_rebase_add_continue.GitRebaseAddContinue(*args: Any, **kwargs: Any)[source]

Bases: DataConfig

A single step to make rebasing easier.

Usually a rebase has the user explicitly add and then continue. This script checks all of the paths for conflicts and then if none exist adds all files and continues.

Valid options: []

Parameters:
  • *args – positional arguments for this data config

  • **kwargs – keyword arguments for this data config

repo_dpath: Value
skip_editor: Value
classmethod main(argv: list[str] | str | bool | None = True, **kwargs: Any) None[source]

Example

>>> from git_well.git_rebase_add_continue import GitRebaseAddContinue
>>> from git_well.repo import Repo
>>> cls = GitRebaseAddContinue
>>> repo = Repo.demo()
>>> # TODO: make a plausible scenario
>>> argv = False
>>> kwargs = dict()
>>> kwargs['repo_dpath'] = repo
>>> import pytest
>>> with pytest.raises(RuntimeError):
>>>     cls.main(argv=argv, **kwargs)
default = {'repo_dpath': <Value('.')>, 'skip_editor': <Value(True)>}
git_well.git_rebase_add_continue.parsed_rebase_git_status(repo_dpath: str | PathLike[str]) dict[str, list[Path]][source]

a git status output has several possible sections it can output, check for those, and set the state based on them. Information within each state will be indented

git_well.git_rebase_add_continue.main(argv: list[str] | str | bool | None = True, **kwargs: Any) None

Example

>>> from git_well.git_rebase_add_continue import GitRebaseAddContinue
>>> from git_well.repo import Repo
>>> cls = GitRebaseAddContinue
>>> repo = Repo.demo()
>>> # TODO: make a plausible scenario
>>> argv = False
>>> kwargs = dict()
>>> kwargs['repo_dpath'] = repo
>>> import pytest
>>> with pytest.raises(RuntimeError):
>>>     cls.main(argv=argv, **kwargs)