File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change 1212
1313class GitSimBaseCommand (m .MovingCameraScene ):
1414 def __init__ (self ):
15-
1615 super ().__init__ ()
1716 self .init_repo ()
1817
@@ -36,6 +35,8 @@ def __init__(self):
3635 self .logo = m .ImageMobject (Settings .logo )
3736 self .logo .width = 3
3837
38+ print (f"Simulating: git { type (self ).__name__ .lower ()} " )
39+
3940 def init_repo (self ):
4041 try :
4142 self .repo = Repo (search_parent_directories = True )
@@ -44,7 +45,6 @@ def init_repo(self):
4445 sys .exit (1 )
4546
4647 def execute (self ):
47- print ("Simulating: git " + Settings .subcommand )
4848 self .show_intro ()
4949 self .get_commits ()
5050 self .fadeout ()
@@ -136,7 +136,6 @@ def show_intro(self):
136136
137137 def show_outro (self ):
138138 if Settings .animate and Settings .show_outro :
139-
140139 self .play (m .Restore (self .camera .frame ))
141140
142141 self .play (self .logo .animate .scale (4 ).set_x (0 ).set_y (0 ))
@@ -364,7 +363,6 @@ def draw_tag(self, commit):
364363 return
365364
366365 for tag in self .repo .tags :
367-
368366 try :
369367 if commit .hexsha == tag .commit .hexsha :
370368 tagText = m .Text (
@@ -741,7 +739,6 @@ def populate_zones(
741739 firstColumnArrowMap = {},
742740 secondColumnArrowMap = {},
743741 ):
744-
745742 for x in self .repo .index .diff (None ):
746743 if "git-sim_media" not in x .a_path :
747744 secondColumnFileNames .add (x .a_path )
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ def __init__(self):
1414 pass
1515
1616 def construct (self ):
17- print (Settings .INFO_STRING + type (self ).__name__ )
1817 self .show_intro ()
1918 self .get_commits ()
2019 self .parse_commits (self .commits [0 ])
You can’t perform that action at this time.
0 commit comments