def diff(ctx, branch):
    """
    Determine which tests intersect a git diff.
    """
    diff = GitDiffReporter(branch)
    regions = diff.changed_intervals()
    _report_from_regions(regions, ctx.obj, file_factory=diff.old_file)