MCPcopy
hub / github.com/initialcommit-com/git-sim / construct

Method construct

src/git_sim/revert.py:39–58  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

37 self.cmd += f"{type(self).__name__.lower()} {self.commit}"
38
39 def construct(self):
40 if not settings.stdout and not settings.output_only_path and not settings.quiet:
41 print(f"{settings.INFO_STRING} {self.cmd}")
42
43 self.show_intro()
44 self.parse_commits()
45 self.center_frame_on_commit(self.get_commit())
46 self.setup_and_draw_revert_commit()
47 self.recenter_frame()
48 self.scale_frame()
49 self.reset_head_branch("abcdef")
50 self.vsplit_frame()
51 self.setup_and_draw_zones(
52 first_column_name="----",
53 second_column_name="Changes reverted from",
54 third_column_name="----",
55 )
56 self.show_command_as_title()
57 self.fadeout()
58 self.show_outro()
59
60 def build_commit_id_and_message(self, commit, i):
61 hide_refs = False

Callers

nothing calls this directly

Calls 13

show_introMethod · 0.80
parse_commitsMethod · 0.80
get_commitMethod · 0.80
recenter_frameMethod · 0.80
scale_frameMethod · 0.80
reset_head_branchMethod · 0.80
vsplit_frameMethod · 0.80
setup_and_draw_zonesMethod · 0.80
show_command_as_titleMethod · 0.80
fadeoutMethod · 0.80

Tested by

no test coverage detected