@click.command()
@click.option('-f', '--force/--no-stop-force', default=False,
              help='Creates a new branch if it does not exist yet.')
@click.argument('issue')
@click.pass_obj
def checkout(lancet, force, issue):
    issue = get_issue(lancet, issue)

    # Get the working branch
    branch = get_branch(lancet, issue, create=force)

    with taskstatus('Checking out working branch') as ts:
        if not branch:
            ts.abort('Working branch not found')
        lancet.repo.checkout(branch.name)
        ts.ok('Checked out "{}"', branch.name)
Split a pathname into drive and path specifiers.
dataset/ETHPy150Open GaretJax/lancet/lancet/commands/repository.py/checkout--crossover with--dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/javapath.py/splitdrive