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

Function cherry_pick

src/git_sim/commands.py:63–78  ·  view source on GitHub ↗
(
    commit: str = typer.Argument(
        ...,
        help="The ref (branch/tag), or commit ID to simulate cherry-pick onto active branch",
    ),
    edit: str = typer.Option(
        None,
        "--edit",
        "-e",
        help="Specify a new commit message for the cherry-picked commit",
    ),
)

Source from the content-addressed store, hash-verified

61
62
63def cherry_pick(
64 commit: str = typer.Argument(
65 ...,
66 help="The ref (branch/tag), or commit ID to simulate cherry-pick onto active branch",
67 ),
68 edit: str = typer.Option(
69 None,
70 "--edit",
71 "-e",
72 help="Specify a new commit message for the cherry-picked commit",
73 ),
74):
75 from git_sim.cherrypick import CherryPick
76
77 scene = CherryPick(commit=commit, edit=edit)
78 handle_animations(scene=scene)
79
80
81def clean():

Callers

nothing calls this directly

Calls 2

CherryPickClass · 0.90
handle_animationsFunction · 0.70

Tested by

no test coverage detected