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

Function commit

src/git_sim/commands.py:105–121  ·  view source on GitHub ↗
(
    message: str = typer.Option(
        "New commit",
        "--message",
        "-m",
        help="The commit message of the new commit",
    ),
    amend: bool = typer.Option(
        default=False,
        help="Amend the last commit message, must be used with the --message flag",
    ),
)

Source from the content-addressed store, hash-verified

103
104
105def commit(
106 message: str = typer.Option(
107 "New commit",
108 "--message",
109 "-m",
110 help="The commit message of the new commit",
111 ),
112 amend: bool = typer.Option(
113 default=False,
114 help="Amend the last commit message, must be used with the --message flag",
115 ),
116):
117 from git_sim.commit import Commit
118
119 settings.hide_first_tag = True
120 scene = Commit(message=message, amend=amend)
121 handle_animations(scene=scene)
122
123
124def config(

Callers

nothing calls this directly

Calls 2

CommitClass · 0.90
handle_animationsFunction · 0.70

Tested by

no test coverage detected