import base64


def decode(data):
    """
    Decodes the data structure from the push format to the foramt that rsync
    expects.

    :param data: data structure obtained from the rsync delta.
    :return: data structured encoded.
    """
    decoded_data = [data[0]]  # the first item is the block size
    for block in data[1:]:  # skip block size
        decoded_data.append(base64.b64decode(block))

    return decoded_data