Repository navigation
fix(git-graph): leave a folded mark unjoined, not threaded - #1672
Merged
Merged
Conversation
A commit drawn in the bundle's column carried a vertical thread whenever the rows around it carried something in that column — and a folded mark did, so four tips from past the window came out as one continuous line with four marks on it. That is the reading the `*`/diamond exists to prevent: several unrelated lines drawn in the sixth column, saying they are not that column's commits, joined into a single branch by the stroke between them. A folded mark now carries no thread and no longer counts as a lane a neighbouring thread may reach into, so the marks stand apart. Measured on the ten-branch demo history (phone, 2x): the bundle column was one 309 px run before, five separate runs after. The decoder test asserts no thread at the bundle's lane plus their pixel x, and the two screenshot scenarios assert no `<line>` at the bundle's x on a folded row nor one reaching down into it from the row above.
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.
What
The TUI, desktop and mobile git lane graphs draw a commit whose lane was folded into the six-column window as
*(a diamond on the phone and desktop). Until now the geometry still emitted a vertical thread through that mark, so several unrelated tips drawn in the bundle column joined into one continuous line and read like a single branch with commits on it — the opposite of what the mark means. A folded mark now carries no thread, and the row above no longer reaches down into it.Commits
Verification
./node_modules/.bin/vitest run packages/git-graph/src/index.test.ts→ 23 passed (23)./node_modules/.bin/tsc -p packages/git-graph --noEmit→ cleanmake check-docs→ 425 docs checked, placement, bilingual pairing, links and fences OKscripts/screenshots/scenarios.d/git-lane-window.jsongained two assertions (desktop and mobile): the folded marks carry no vertical stroke at x=77, and the row above does not extend into them.User-visible changes
/git, desktop and mobile history): before, commits in the folded seventh-and-beyond lanes were joined by a vertical thread, so separate tips in the bundle column read as one branch; after, each folded mark stands alone and the row above does not reach into it. Revert0e878c37f.