def _add_and_modified_in_rev(self, rev):
        result = []

        cmd = ' '.join((
            'whatchanged',
            '-r',
            '--max-count=1',
            '--ignore-submodules',
            '--pretty=format:""',
            '--abbrev=40',  # no truncating commit ids
            '--diff-filter="AM"',
            '--name-status',
            '--relative',
            '--no-renames',  # rename = D + A, but we only care about A
            rev,
        ))
        whatchanged_output = self._git_cmd(cmd).strip()

        for line in whatchanged_output.splitlines():
            status, path = line.split(None, 1)
            if status not in "AM":
                raise ValueError('Unexpected "%s" output: %s' % (cmd, line))
            result.append(path)

        return result
dataset/ETHPy150Open jenanwise/codequality/codequality/scmhandlers.py/GitHandler._add_and_modified_in_rev/original