File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ def __init__(self):
29
29
self .n_default = settings .n_default
30
30
self .n = settings .n
31
31
self .n_orig = self .n
32
+ self .n_dark_commits = 0
32
33
self .selected_branches = []
33
34
self .zone_title_offset = 2.6 if platform .system () == "Windows" else 2.6
34
35
self .arrow_map = []
@@ -143,7 +144,8 @@ def parse_commits(
143
144
try :
144
145
commitParents = list (commit .parents )
145
146
except AttributeError :
146
- if len (self .drawnCommits ) < self .n_default :
147
+ if ((len (self .drawnCommits ) + self .n_dark_commits ) < self .n_default ):
148
+ self .n_dark_commits += 1
147
149
self .parse_commits (self .create_dark_commit (), i , circle )
148
150
return
149
151
@@ -157,7 +159,8 @@ def parse_commits(
157
159
for p in range (len (commitParents )):
158
160
self .parse_commits (commitParents [p ], i , circle )
159
161
else :
160
- if len (self .drawnCommits ) < self .n_default :
162
+ if ((len (self .drawnCommits ) + self .n_dark_commits ) < self .n_default ):
163
+ self .n_dark_commits += 1
161
164
self .parse_commits (self .create_dark_commit (), i , circle )
162
165
163
166
def parse_all (self ):
You can’t perform that action at this time.
0 commit comments