Repository navigation
feat!: remove Jujutsu support - #4
Merged
Merged
Conversation
dunk now targets Git only. Keeping the VCS layer to a single backend removes the jj loaders, the `vcs` config key and auto-detection, the jj branch-review revset path, and jj watch signatures — less surface to maintain for a personal tool. jj users can run a colocated Git checkout. BREAKING CHANGE: the `vcs` config option is gone and jj workspaces are no longer auto-detected. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
amix
marked this pull request as ready for review
May 16, 2026 16:20
Merged
amix
added a commit
that referenced
this pull request
Nov 10, 2026
* refactor: remove dead helpers, modules, and duplicates Nothing in the app calls these anymore; most outlived the comment-card and viewport-follow rewrites: - `viewportSelection.ts` (DiffPane has its own viewport follow) - `measurePlannedSectionGeometry`, a copy of `measureDiffSectionGeometry` - `CommentCardSpacer`, `annotationRangeLabel`, `annotationLocationLabel`, `fileLabel`, `findFileSectionAtOffset` - test-only wrappers `getSelectedAnnotations` and `estimateDiffSectionBodyRows` - `withRemovedCommentsForFiles` and `resolveDunkStatePath` (no `state.json`) - the unreferenced, untypechecked `scripts/test-large-untracked-render.tsx` - the `@types/ws` devDependency (no `ws` user since the daemon went away) Also shares one `stripTerminalControl` between pager and loaders, collapses a branch in the mnemonic-prefix check that returned `true` either way, and moves two JSDoc blocks back onto the functions they describe. * docs: fix stale comment-storage, schema, and contributor docs - AGENTS.md and the review skill said `.dunk/comments.json` is committed; it's gitignored and deleted once empty (fe87ebb, 4bfd185). - notes-schema.md was still a "not yet implemented" draft with a nonexistent `latest.json`, the wrong temp-file name, no fuzzy relocation, and no `not-in-hunk` drift. - test/README.md described a `test/session/` daemon/broker tree that's gone. - CONTRIBUTING named the npm package `dunk` and skipped the PTY suite. - Examples 3 and 6 shipped `agent-context.json` sidecars nothing reads and promised inline agent rationale that no longer renders. - Help text, type docs, and comments still said "git only", "revset", `hunk --version`, `fs.watch`, and "comment toggle". * ci: drop Jujutsu installs and fix the Windows test paths jj support was removed in #4, but three jobs still installed jj-cli. The Windows job also passed `./packages` and `./test/session`, which no longer exist; it now runs the same directories as `bun run test`. * test(smoke): run the TTY smoke suite on macOS The harness only spoke util-linux `script` (`-f -c <cmd> <file>`), so on macOS's BSD `script` every case failed with "illegal option -- f". Pick the right flags per flavor, and build the fixture patch with relative paths so header assertions don't depend on how long the OS temp dir is. Drops an `agent.json` fixture left over from `--agent-context`. * chore: give knip real entry points and un-export module-internal helpers knip had no entries, so it reported every test as an unused file and every test-only import as dead, which buried the real findings. With tests, scripts, benchmarks, and the OpenTUI entry declared, it reports nothing. The 13 symbols it then flagged are only used inside their own modules, so they drop `export`.
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.
Context
dunkis a personal Git diff tool. The jj backend doubled the VCS surface (loaders, branch-review, watch, config detection, error translation) for a path that isn't used. Dropping it keeps things simple.What was changed
src/core/jj.tsand its tests; removed jj loaders, watch signatures, and the jj branch-review revset path.vcsconfig key,VcsModetype, and jj workspace auto-detection.findRepoRootkeys off.gitonly.dunk stash showno longer needs a jj guard; CLI help and the "not a repo" error drop jj wording.vcsconfig row) and CHANGELOG.Out of scope
[0.13.0]changelog entry left as-is; removal is noted under[Unreleased].Refs
Verified:
bun run typecheck,bun test(339 pass),bun run lint,bun run test:integration(21 pass), and a real TTY smoke ofdunk diff/dunk show. Doistbot isn't installed locally.🤖 Generated with Claude Code