We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45e8ef0 commit aefaeacCopy full SHA for aefaeac
git_sim/merge.py
@@ -74,6 +74,14 @@ def construct(self):
74
if self.no_ff:
75
self.center_frame_on_commit(branch_commit)
76
commitId = self.setup_and_draw_parent(branch_commit, "Merge commit")
77
+
78
+ # If pre-merge HEAD is on screen, drawn an arrow to it as 2nd parent
79
+ if head_commit.hexsha in self.drawnCommits:
80
+ start = self.drawnCommits["abcdef"].get_center()
81
+ end = self.drawnCommits[head_commit.hexsha].get_center()
82
+ arrow = m.CurvedArrow(start, end, color=self.fontColor)
83
+ self.draw_arrow(True, arrow)
84
85
reset_head_to = "abcdef"
86
shift = numpy.array([0.0, 0.0, 0.0])
87
0 commit comments