-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
fix(blame previous): Remove restriction to availibility of the actual revision #12090
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
Conversation
|
// Origin line of commit selected is final line of the previous blame commit | ||
int finalLineNumberOfPreviousBlame = _lastBlameLine!.OriginLineNumber; | ||
int originalLineNumberOfPreviousBlame = _gitBlameParser.GetOriginalLineInPreviousCommit(selectedRevision, blameInfo.filename, finalLineNumberOfPreviousBlame); | ||
int originalLineNumberOfPreviousBlame = _gitBlameParser.GetOriginalLineInPreviousCommit(blameInfo.selectedRevision, blameInfo.filename, finalLineNumberOfPreviousBlame); |
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
This is the previous revision in grid.
I suggest this is separate or that the txt is changed.
Will not vote against though.
to availibility of the actual revision - use visible previous revision as fallback - add mnemonics Refs: gitextensions#12090
f077806
to
f5cfff2
Compare
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.
works fine, just suggest name changes
@@ -47,6 +47,8 @@ public sealed partial class BlameControl : GitModuleControl | |||
private bool _changingScrollPosition; | |||
private IRepositoryHostPlugin? _gitHoster; | |||
private static readonly IList<Color> AgeBucketGradientColors = GetAgeBucketGradientColors(); | |||
private static readonly TranslationString _blameActualPreviousRevision = new("&Blame actual previous revision"); |
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.
private static readonly TranslationString _blameActualPreviousRevision = new("&Blame actual previous revision"); | |
private static readonly TranslationString _blameActualPreviousRevision = new("&Blame previous revision"); |
@@ -47,6 +47,8 @@ public sealed partial class BlameControl : GitModuleControl | |||
private bool _changingScrollPosition; | |||
private IRepositoryHostPlugin? _gitHoster; | |||
private static readonly IList<Color> AgeBucketGradientColors = GetAgeBucketGradientColors(); | |||
private static readonly TranslationString _blameActualPreviousRevision = new("&Blame actual previous revision"); | |||
private static readonly TranslationString _blameVisiblePreviousRevision = new("&Blame visible previous revision"); |
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.
private static readonly TranslationString _blameVisiblePreviousRevision = new("&Blame visible previous revision"); | |
private static readonly TranslationString _blameVisiblePreviousRevision = new("&Blame previous visible revision"); |
Review comment: Pronounce "previous"
Review comment (after actually reading all)
Fixes #10946
Proposed changes
BlameControl
Screenshots
Before
context menu item disabled
After
context menu item enabled if there is shown a (virtual) parent
Test methodology
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.