Ejemplo n.º 1
0
    def test_git(self):
        with self.main('-c', 'git:') as execute:
            repo.write_files('a', 'b', 'c')

            observer, = execute.observed
            observer(None)
            patch.wait()
            files = GIT.diff_tree('--no-commit-id', '--name-only', '-r',
                                  'HEAD')
            assert set(files) == set('abc')
Ejemplo n.º 2
0
def _files_in_commit(commit='HEAD'):
    return GIT.diff_tree('--no-commit-id', '--name-only', '-r', commit)