New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor and fixup graph loading #10842
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+0
Proper review take a long time, seem reasonable though.
This type has some great comments, but I feel like additional inline comments for the changed lines could further help. E.g., I find this very useful: gitextensions/GitUI/UserControls/RevisionGrid/Graph/RevisionGraph.cs Lines 428 to 448 in de93fd8
A specific example: in lines:100-101 we're now multiplying by 2 - why and what does it mean? |
6faf40d
to
8f48e5b
Compare
@@ -458,36 +486,40 @@ static void StraightenLanes(int startIndex, int lastIndex, IList<RevisionGraphRo | |||
|
|||
bool moved = false; | |||
IRevisionGraphRow previousRow = localOrderedRowCache[currentIndex - 1]; | |||
IRevisionGraphRow nextRow = localOrderedRowCache[currentIndex + 1]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was an unused leftover from the previous one-line straightening algorithm.
@@ -682,16 +683,19 @@ private async Task UpdateVisibleRowRangeInternalAsync() | |||
|
|||
if (AppSettings.ShowRevisionGridGraphColumn) | |||
{ | |||
int scrollTo; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a pointless copy of newBackgroundScrollTo
Alternative to #10680
Proposed changes
RevisionGraph.GetSegmentsForRow
: Handle negativerow
UpdateVisibleRowRangeInternalAsync
clearerStraightenLanes
clearer (taken from Straighten revision graph in more cases #10778)Screenshots
N/A
Test methodology
Merge strategy
Please do not squash merge the commits!
✒️ I contribute this code under The Developer Certificate of Origin.