def METHOD_NAME(files_copied, save_filename, strip_prefix=' '):
    """
    Given a dict of files that have been copied in the form {dst: src}, write a list of all files
    and their sources to the file. Optionally, a common prefix can be removed from the dst files.
    """
    printfmt = '{:<80}  <- {}\n'
    src_key = '  <source file> (preceding * indicates file is modified in git without a commit)'
    separator = '-' * (85 + len(src_key)) + '\n'
    filetext = separator
    filetext += 'Source version info:  repo [{}] - branch [{}] - commit hash [{}]\n\n'.format(
        git.get_repo(), git.get_branch(), git.get_hash())
    filetext += printfmt.format('<staged file>', src_key)
    filetext += separator
    staged_paths = sorted(list(files_copied.keys()))
    for staged_path in staged_paths:
        staged_file = staged_path
        if staged_file.startswith(strip_prefix):
            staged_file = staged_file[len(strip_prefix):]
        filetext += printfmt.format(staged_file, files_copied[staged_path])
    save_text_to_file(filetext, save_filename)