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

Class Clean

src/git_sim/clean.py:11–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9
10
11class Clean(GitSimBaseCommand):
12 def __init__(self):
13 super().__init__()
14 self.hide_first_tag = True
15 self.allow_no_commits = True
16 settings.hide_merged_branches = True
17 self.n = self.n_default
18
19 try:
20 self.selected_branches.append(self.repo.active_branch.name)
21 except TypeError:
22 pass
23
24 self.cmd += f"{type(self).__name__.lower()}"
25
26 def construct(self):
27 if not settings.stdout and not settings.output_only_path and not settings.quiet:
28 print(f"{settings.INFO_STRING} {self.cmd}")
29
30 self.show_intro()
31 self.parse_commits()
32 self.recenter_frame()
33 self.scale_frame()
34 self.vsplit_frame()
35 self.setup_and_draw_zones(
36 first_column_name="Untracked files",
37 second_column_name="----",
38 third_column_name="Deleted files",
39 )
40 self.show_command_as_title()
41 self.fadeout()
42 self.show_outro()
43
44 def create_zone_text(
45 self,
46 firstColumnFileNames,
47 secondColumnFileNames,
48 thirdColumnFileNames,
49 firstColumnFiles,
50 secondColumnFiles,
51 thirdColumnFiles,
52 firstColumnFilesDict,
53 secondColumnFilesDict,
54 thirdColumnFilesDict,
55 firstColumnTitle,
56 secondColumnTitle,
57 thirdColumnTitle,
58 horizontal2,
59 ):
60 for i, f in enumerate(firstColumnFileNames):
61 text = (
62 m.Text(
63 self.trim_path(f),
64 font=self.font,
65 font_size=24,
66 color=self.fontColor,
67 )
68 .move_to(

Callers 1

cleanFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected