Skip to content

Conversation

mstv
Copy link
Member

@mstv mstv commented Nov 5, 2023

Proposed changes

  • Add option to fan out all children lanes directly at parent
    • Add readonly struct RevisionGraphConfig in order to not change settings during graph rendering
    • Factor out readonly ref struct RevisionGrid.Graph.Rendering.Context in order to reduce the number of arguments to pass
  • Sort StartSegments in order to reduce crossings
    • Add property RevisionGraphRevision.ParentCount in order to avoid enumeration of ConcurrentQueue

Screenshots

Before After
image image
Before & After: default After: optional
image image

Test methodology

  • adapted tests

Please do not squash merge!


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

@mstv mstv self-assigned this Nov 5, 2023
{
public readonly bool MergeGraphLanesHavingCommonParent;

public RevisionGraphConfig()
Copy link
Member

Choose a reason for hiding this comment

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

Do you plan to add more properties here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, I want to add another two independent options here and in AppSettings:

  • "Render graph with diagonals"
  • "Straighten graph diagonals"

and a derived one here:

  • ReduceGraphCrossings in the third commit of this PR

@RussKie
Copy link
Member

RussKie commented Nov 5, 2023

Before & After: default After: optional
image image

👍

@RussKie RussKie added the 📭 needs: author feedback More info/confirmation awaited from OP; issues typically get closed after 30 days of inactivity label Nov 5, 2023
@ghost ghost removed the 📭 needs: author feedback More info/confirmation awaited from OP; issues typically get closed after 30 days of inactivity label Nov 6, 2023
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.

Any automated we could add?

@RussKie RussKie added the 📭 needs: author feedback More info/confirmation awaited from OP; issues typically get closed after 30 days of inactivity label Nov 9, 2023
@ghost ghost removed the 📭 needs: author feedback More info/confirmation awaited from OP; issues typically get closed after 30 days of inactivity label Nov 10, 2023
mstv added a commit to mstv/gitextensions that referenced this pull request Nov 10, 2023
mstv added a commit to mstv/gitextensions that referenced this pull request Nov 10, 2023
@mstv mstv force-pushed the feature/merge_lanes_optional branch from f3fff3f to e24e622 Compare November 10, 2023 17:53
@mstv mstv force-pushed the feature/merge_lanes_optional branch from e24e622 to d1e0e1e Compare November 10, 2023 17:55
@mstv mstv merged commit d1e0e1e into gitextensions:master Nov 10, 2023
@ghost ghost added this to the vNext milestone Nov 10, 2023
@mstv mstv deleted the feature/merge_lanes_optional branch November 10, 2023 17:56
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