def METHOD_NAME(args):
    """Compare baselines between two commit hashes"""
    if args.target is None:
        args.target = (
            subprocess.check_output(["git", "show", "--format='%H'", "--no-patch"])[:-1]
            .decode()
            .strip("'")
        )
    subprocess.run(["git", "worktree", "add", args.source, args.source], check=True)
    subprocess.run(["git", "worktree", "add", args.target, args.target], check=True)
    comp = DirectoryComparator(
        os.path.join(args.source, args.directory),
        os.path.join(args.target, args.directory),
        args.tests,
        args.kernels,
        args.codenames,
    )
    subprocess.run(["git", "worktree", "remove", args.source], check=True)
    subprocess.run(["git", "worktree", "remove", args.target], check=True)
    comp.compare(args.auxiliary)
    comp.dump_json(args.output)