

@classmethod
def for_diff(cls, diff):
    '\n        Determines what type of diff this represents\n        '
    if diff.new_file:
        return diff.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

dataset/ETHPy150Open robmadole/jig/src/jig/diffconvert.py DiffType.for_diff/VarMisuse@25/48 `cls`->`diff`