MCPcopy Index your code
hub / github.com/initialcommit-com/git-sim / checkout

Function checkout

src/git_sim/commands.py:46–60  ·  view source on GitHub ↗
(
    branch: str = typer.Argument(
        ...,
        help="The name of the branch to checkout",
    ),
    b: bool = typer.Option(
        False,
        "-b",
        help="Create the specified branch if it doesn't already exist",
    ),
)

Source from the content-addressed store, hash-verified

44
45
46def checkout(
47 branch: str = typer.Argument(
48 ...,
49 help="The name of the branch to checkout",
50 ),
51 b: bool = typer.Option(
52 False,
53 "-b",
54 help="Create the specified branch if it doesn't already exist",
55 ),
56):
57 from git_sim.checkout import Checkout
58
59 scene = Checkout(branch=branch, b=b)
60 handle_animations(scene=scene)
61
62
63def cherry_pick(

Callers

nothing calls this directly

Calls 2

CheckoutClass · 0.90
handle_animationsFunction · 0.70

Tested by

no test coverage detected