Skip to content

Conversation

mstv
Copy link
Member

@mstv mstv commented Jan 27, 2025

Proposed changes

  • LaneInfo: Ensure new lane color is different from adjacent lanes
  • RevisionGraph: provide segmentToTheLeft and segmentToTheRight
  • RevisionGraphLaneColor: ensure that there are configured at least 4 graph colors
  • declare graph helper classes as sealed

Screenshots

Before | After

image image

image image

Test methodology

  • manual

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.

@mstv mstv self-assigned this Jan 27, 2025
Copy link
Member

@gerhardol gerhardol left a comment

Choose a reason for hiding this comment

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

Works well
I have not tried to break the changes

Trace.WriteLine("At least two graph colors must be configured");
branchColors = [Color.Magenta.AdaptTextColor(), Color.Cyan.AdaptTextColor()];
Trace.WriteLine(@"At least {minBranchColors} different graph colors must be configured - using crying fallback");
branchColors = [Color.Cyan, Color.Magenta, Color.Yellow, Color.Lime];
Copy link
Member

Choose a reason for hiding this comment

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

not adapted colors - but these are made to stand out.

@mstv mstv added this to the v5.3 milestone Feb 13, 2025
@mstv mstv merged commit c08b4f5 into gitextensions:master Feb 13, 2025
4 checks passed
@mstv mstv deleted the feat/lane_color branch February 13, 2025 22:38
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.

2 participants