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

RevisionReader: No reflog for notes #11234

Merged

Conversation

gerhardol
Copy link
Member

@gerhardol gerhardol commented Oct 1, 2023

Proposed changes

Regression in #11225

Reflog selector identifies stashes and only listed with git-stash-list. However, the reflogselector can still be empty occasionally also in this situation for instance when Git Notes are displayed. These empty reflog selectors should not be presented as stashes.
For efficiency reasons the test is only for null values, i.e. empty reflog selectors must be presented as null. (In addition, a string should not be allocated even if string interning should eliminate the allocation need, there is still overhead).
https://github.com/gitextensions/gitextensions/blob/master/Plugins/GitUIPluginInterfaces/GitRevision.cs#L111

Test methodology

Test adjusted

Merge strategy

I agree that the maintainer squash merge this PR (if the commit message is clear).


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

@ghost ghost assigned gerhardol Oct 1, 2023
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.

... if my update of the PR description is correct.

@gerhardol
Copy link
Member Author

... if my update of the PR description is correct.

Updated some more.

@gerhardol gerhardol merged commit c5fb389 into gitextensions:master Oct 1, 2023
4 checks passed
@ghost ghost added this to the vNext milestone Oct 1, 2023
@gerhardol gerhardol deleted the feature/reader-reflog-notes branch October 1, 2023 23:00
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

3 participants