Skip to content

Commit 1a64db3

Browse files
Hide first tag in merges with conflicts
Signed-off-by: Jacob Stopak <jacob@initialcommit.io>
1 parent 8ccb18a commit 1a64db3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

git_sim/git_sim_base_command.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def __init__(self):
5353

5454
self.logo = m.ImageMobject(settings.logo)
5555
self.logo.width = 3
56+
self.hide_first_tag = settings.hide_first_tag
5657

5758
self.fill_opacity = 0.25
5859
self.ref_fill_opacity = 0.25
@@ -477,7 +478,7 @@ def draw_branch(self, commit, i, make_branches_remote=False):
477478
def draw_tag(self, commit, i):
478479
x = 0
479480

480-
if settings.hide_first_tag and i == 0:
481+
if self.hide_first_tag and i == 0:
481482
return
482483

483484
for tag in self.repo.tags:

git_sim/merge.py

+1
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ def construct(self):
113113
self.repo.active_branch.name, self.branch
114114
)
115115
if merge_result:
116+
self.hide_first_tag = True
116117
self.parse_commits(head_commit)
117118
self.recenter_frame()
118119
self.scale_frame()

0 commit comments

Comments
 (0)