git_well.git_rebase_add_continue module¶
- class git_well.git_rebase_add_continue.GitRebaseAddContinue(*args, **kwargs)[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
- classmethod main(cmdline=1, **kwargs)[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 >>> cmdline = 0 >>> kwargs = dict() >>> kwargs['repo_dpath'] = repo >>> import pytest >>> with pytest.raises(RuntimeError): >>> cls.main(cmdline=cmdline, **kwargs)
- default = {'repo_dpath': <Value('.')>, 'skip_editor': <Value(True)>}¶
- git_well.git_rebase_add_continue.parsed_rebase_git_status(repo_dpath)[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(cmdline=1, **kwargs)¶
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 >>> cmdline = 0 >>> kwargs = dict() >>> kwargs['repo_dpath'] = repo >>> import pytest >>> with pytest.raises(RuntimeError): >>> cls.main(cmdline=cmdline, **kwargs)