Repository navigation
docs(git-graph): say what the six-colour palette actually guarantees - #1669
Merged
Merged
Conversation
The palette's contract comment claimed two lanes sharing a colour are six columns apart, which LANE_WINDOW stopped being true: a line past the sixth is drawn inside the sixth column, so the lines folded there share one cell and one colour. Colour follows the drawn column, not the line of work, and the row's refs are what tell those lines apart. The TUI guide repeated the same claim as "one colour per branch line"; both languages now say one colour per column.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Clarifies the six-colour palette contract in the shared git-graph package and in both TUI guides: colour follows the column a row prints, not the line of work behind it, and every line folded into the sixth-column bundle shares that column's colour. The old comments claimed two lanes sharing a colour stay six columns apart, which stopped being true when
LANE_WINDOWbegan drawing every line past the sixth inside the sixth column.Commits
Verification
git diffshows no executable line changed inpackages/git-graph/src/palette.ts(every changed line there is inside the doc comment), so no build or test was run.User-visible changes
none (documentation and source comments only)