xia_git.git.Git
- class xia_git.git.Git
Bases:
object- __init__()
Methods
__init__()clean_workspace(work_path[, destroy])Clean Workspace
compare_directories_recursive(dir_a, dir_b)Compare file content
destroy_workspace(work_path)get_operation_list(source_path, target_path)get_update_instruction(source_path, ...)- classmethod clean_workspace(work_path, destroy: bool = False)
Clean Workspace
- Parameters
work_path – Path to be cleaned
destroy – Removing The directory itself. When it is false, ./.git/ will be kept
- classmethod compare_directories_recursive(dir_a, dir_b, relative_path='')
Compare file content