Skip to content
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

Artificial commits: Invalidate rowcache when inserting #9459

Merged

Conversation

gerhardol
Copy link
Member

Followup to #9393

Proposed changes

Inserting artificial commits first if HEAD was not added to the grid was added in #9393.
In some situations the grid would not be refreshed correctly, requiring a manual scroll.
This normally would occur for bigger repos only.
When working with the PR, I could not get a stable repro and could not address it.
This is a follow up to invalidate the row cache properly to refresh the graph in the grid.

Screenshots

Before

image

After

The normal commits are being displayed while the git-log output is created, so initially the artificial commits are not shown.
After a few seconds the graph is updated as below (that would require a scroll before).

image

Test methodology

manual


✒️ I contribute this code under The Developer Certificate of Origin.

@ghost ghost assigned gerhardol Aug 8, 2021
Copy link
Member

@RussKie RussKie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have a deep understanding of the functionality. The changes look sensible...

Copy link
Collaborator

@GintasS GintasS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, apart from the ! negation, couldn't pick on anything, no knowledge here.

Copy link
Member

@mstv mstv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have a deep understanding of the functionality. The changes look sensible...

same for me

@gerhardol
Copy link
Member Author

I don't have a deep understanding of the functionality. The changes look sensible...

same for me

You know this better than me...

But I tried to add comments with what I know.

Will squash merge

@gerhardol gerhardol merged commit c38cdbf into gitextensions:master Aug 9, 2021
@ghost ghost added this to the 3.6 milestone Aug 9, 2021
@gerhardol gerhardol deleted the feature/i9393-cache-artificial branch August 9, 2021 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants