@classmethod
    def for_diff(cls, diff):
        if diff.new_file:
            return cls.A
        elif diff.deleted_file:
            return cls.D
        elif diff.renamed:
            return cls.R
        elif diff.a_blob and diff.b_blob and diff.a_blob != diff.b_blob:
            return cls.M

        return cls.U
Determines what type of diff this represents
dataset/ETHPy150Open robmadole/jig/src/jig/diffconvert.py/DiffType.for_diff