def split_diffs(text):
    """Split up a diff output, which can potentially contain
    multiple diffs, into a list of Diff objects
    """
    arr = []
    for t in text:
        if t.startswith('diff') and len(arr) != 0:
            yield arr
            arr = [t]
        else:
            arr.append(t)
    yield arr
