Skip to content

Commit

Permalink
Hide first tag in merges with conflicts
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Stopak <jacob@initialcommit.io>
  • Loading branch information
initialcommit-io committed Apr 1, 2023
1 parent 8ccb18a commit 1a64db3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion git_sim/git_sim_base_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def __init__(self):

self.logo = m.ImageMobject(settings.logo)
self.logo.width = 3
self.hide_first_tag = settings.hide_first_tag

self.fill_opacity = 0.25
self.ref_fill_opacity = 0.25
Expand Down Expand Up @@ -477,7 +478,7 @@ def draw_branch(self, commit, i, make_branches_remote=False):
def draw_tag(self, commit, i):
x = 0

if settings.hide_first_tag and i == 0:
if self.hide_first_tag and i == 0:
return

for tag in self.repo.tags:
Expand Down
1 change: 1 addition & 0 deletions git_sim/merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ def construct(self):
self.repo.active_branch.name, self.branch
)
if merge_result:
self.hide_first_tag = True
self.parse_commits(head_commit)
self.recenter_frame()
self.scale_frame()
Expand Down

0 comments on commit 1a64db3

Please sign in to comment.