forked from initialcommit-com/git-sim
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgit_sim_status.py
More file actions
27 lines (23 loc) · 749 Bytes
/
Copy pathgit_sim_status.py
File metadata and controls
27 lines (23 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from manim import *
from git_sim.git_sim_base_command import GitSimBaseCommand
import git, sys, numpy
class GitSimStatus(GitSimBaseCommand):
def __init__(self, scene):
super().__init__(scene)
self.maxrefs = 2
self.hide_first_tag = True
try:
self.selected_branches.append(self.repo.active_branch.name)
except TypeError:
pass
def execute(self):
print("Simulating: git " + self.scene.args.subcommand)
self.show_intro()
self.get_commits()
self.parse_commits(self.commits[0])
self.recenter_frame()
self.scale_frame()
self.vsplit_frame()
self.setup_and_draw_zones()
self.fadeout()
self.show_outro()