def diff(self, mode='raw'):
        ### modes: raw, numstat, shortstat, summary, patch-with-stat, name-status, name-only
        ### see http://git-scm.com/docs/git-diff
        output = self.command(['diff', '--%s' % mode])
        return output
dataset/ETHPy150Open gferreira/hTools2/Lib/hTools2/modules/git.py/GitHandler.diff/original