Patcher module¶
- class rebasehelper.patcher.Patcher[source]¶
Class for git command used for patching old and new sources
- classmethod apply_patch(repo, patch_object)[source]¶
Function applies patches to old sources It tries apply patch with am command and if it fails then with command –apply
- new_repo: Repo | None = None¶
- new_sources: str | None = None¶
- non_interactive: bool = False¶
- old_repo: Repo | None = None¶
- old_sources: str | None = None¶
- output_data: str | None = None¶
- classmethod patch(old_dir, new_dir, rest_sources, patches, **kwargs)[source]¶
The function can be used for patching one directory against another
- patches: List[PatchObject] = []¶