File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed
Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -859,18 +859,13 @@ define(['d3'], function() {
859859 parent = this . getCommit ( commit . parent ) ;
860860 parent2 = this . getCommit ( commit . parent2 ) ;
861861
862- commit . branchless = false ;
863-
864- while ( parent ) {
865- parent . branchless = false ;
866- parent = this . getCommit ( parent . parent ) ;
862+ function walkCommit ( commit ) {
863+ commit . branchless = false
864+ commit . parent && walkCommit . call ( this , this . getCommit ( commit . parent ) )
865+ commit . parent2 && walkCommit . call ( this , this . getCommit ( commit . parent2 ) )
867866 }
868867
869- // just in case this is a merge commit
870- while ( parent2 ) {
871- parent2 . branchless = false ;
872- parent2 = this . getCommit ( parent2 . parent ) ;
873- }
868+ walkCommit . call ( this , commit )
874869 }
875870 }
876871
You can’t perform that action at this time.
0 commit comments