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
33 lines (26 loc) · 799 Bytes
/
git_sim_status.py
File metadata and controls
33 lines (26 loc) · 799 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
28
29
30
31
32
33
import sys
import git
import manim as m
import numpy
from git_sim.git_sim_base_command import GitSimBaseCommand
class GitSimStatus(GitSimBaseCommand):
def __init__(self, scene):
super().__init__(scene)
self.maxrefs = 2
self.hide_first_tag = True
self.allow_no_commits = 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()