Commit 3d281f2
authored
feature: add new graph-highlighting option "Selected Commits (only first-parent)" (#2646)
* Refactor: move relevant code to new method Histories.RecalculateMergeState()
* Reduce redundant code in RecalculateMergeState()
* Reduce redundant highlighting-code by modifying if-conditions
* Highlight first parent separately for "extra" commits
* The remaining parents are covered further down (under condition '!firstParentOnlyEnabled').
* This is made in prep for upcoming work on adding a new highlighting option.
* Add new graph-highlight option "Selected Commits (only first-parent)"1 parent f9ec08b commit 3d281f2
4 files changed
Lines changed: 50 additions & 42 deletions
File tree
- src
- Models
- Resources/Locales
- ViewModels
- Views
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
73 | | - | |
| 74 | + | |
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| |||
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
85 | | - | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | 91 | | |
109 | 92 | | |
110 | 93 | | |
| |||
164 | 147 | | |
165 | 148 | | |
166 | 149 | | |
167 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
168 | 154 | | |
169 | 155 | | |
170 | 156 | | |
171 | | - | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
172 | 162 | | |
173 | 163 | | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
192 | 167 | | |
193 | 168 | | |
194 | 169 | | |
| |||
227 | 202 | | |
228 | 203 | | |
229 | 204 | | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
230 | 208 | | |
231 | 209 | | |
232 | 210 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
518 | 518 | | |
519 | 519 | | |
520 | 520 | | |
| 521 | + | |
521 | 522 | | |
522 | 523 | | |
523 | 524 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| |||
510 | 511 | | |
511 | 512 | | |
512 | 513 | | |
513 | | - | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
514 | 532 | | |
515 | 533 | | |
516 | 534 | | |
| |||
522 | 540 | | |
523 | 541 | | |
524 | 542 | | |
525 | | - | |
| 543 | + | |
526 | 544 | | |
527 | 545 | | |
528 | 546 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
487 | 487 | | |
488 | 488 | | |
489 | 489 | | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
490 | 500 | | |
491 | 501 | | |
492 | 502 | | |
| |||
516 | 526 | | |
517 | 527 | | |
518 | 528 | | |
| 529 | + | |
519 | 530 | | |
520 | 531 | | |
521 | 532 | | |
| |||
0 commit comments