summaryrefslogtreecommitdiff
path: root/dev
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-23 14:54:39 -0300
committerGabriel Schneider <[email protected]>2026-11-23 14:57:18 -0300
commit0e2012de121a9735d3c2ab7871a04d144636b849 (patch)
tree5ec65db3f88cc73ff7c846ba674e5d7b9015c205 /dev
parent3728b4704962672688f0b4461d20481263378165 (diff)
downloadpardes-0e2012de121a9735d3c2ab7871a04d144636b849.tar.gz
pardes-0e2012de121a9735d3c2ab7871a04d144636b849.zip
the Changes layer from the middle, and every way into a patch view: in a file at a revision a pinned change behind it (the revision or an ancestor) shows what it took away where it stood, and one ahead of it (a descendant) shows the lines it will write as read-only lines, green, where they will stand, the lines it will take away the revision's own text, red across, going; a change that is neither (a sibling) is left out (round 7's evidence, `layer-gone/mid2.py`: a deleted line's ghost a line late there, a change ahead drawn as behind); the causes: `carried` moved a pin's place through every later change's hunks, those ahead of the shown revision too, so jj's log now marks each change behind (`::REV`) or ahead (`logTemplate`: `p`/`c` behind, `a`/`d` ahead; the query takes the revset's changes behind or ahead and the unpinned ones between) and `carried` passes only the changes behind (`Hunk.ahead`); a pin ahead's places are carried back from its parent through the changes ahead before it (`carriedBack`), the lines it takes away marked (`Line.going`, its lane beside them: `going`), the lines it writes the layer's (`Ghost.Kind.added`), its description after them; and "a changed line's old text below the new where the guide says above": a replaced line the patch view's alignment does not pair was a line taken away standing after what was written in its place: now a diff's order, what went right above what came (lines taken away after a run's last changed line right after its new text; with none changed, before the lines written in their place), in the file's own pane and from the middle alike; Churn counts no change ahead; `Diff` with a word that names no file, in a jj repository, takes it for a revision (`Diff @-`, a bookmark): its patch with jj show's header (`jj.diffChange(..., any)`), the one way in that had none (round 7's table; `jj diff` prints no header, so its paged text has none to keep; a header was never dropped on purpose in core/hunks.zig's and core/diff.zig's history); the guide's chapter (the layer the pane's, its lines text and read-only, what an edit there says, what reads the file without them, from the middle, `Diff @-`), the cheatsheet's line, the `Changes` builtin's doc and both JSON lists; tests (core/jj.zig): "from the middle: in a revision's pane a pin behind it ... a pin ahead of it ..." (terminal and window), "a line replaced by one too unlike it ... a diff's order ...", "Diff with a revision jj takes (`@-`, a bookmark) ..."; not gated yet: jj's 44 tests pass (core-test filtered), the book builds
Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'dev')
0 files changed, 0 insertions, 0 deletions