def add_all(repo, flag):
    """Adding changed or new files to the next commit from repo according to flag
    flag = -u : local changes and deletions, no adding files
    flag = -A : all local changes also untracked files
    flag = ['--ignore-removal',<local repo path>]: ignores deletions"""
    repo.git.add(flag)
