Skip to content

feat!: remove Jujutsu support - #4

Merged
amix merged 1 commit into
mainfrom
amix/remove-jujutsu
May 16, 2026
Merged

amix merged 1 commit into
mainfrom
amix/remove-jujutsu

Conversation

@amix

@amix amix commented May 16, 2026

Copy link
Copy Markdown
Owner

Context

dunk is 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

  • Deleted src/core/jj.ts and its tests; removed jj loaders, watch signatures, and the jj branch-review revset path.
  • Removed the vcs config key, VcsMode type, and jj workspace auto-detection. findRepoRoot keys off .git only.
  • dunk stash show no longer needs a jj guard; CLI help and the "not a repo" error drop jj wording.
  • Updated README (removed the Jujutsu section and vcs config row) and CHANGELOG.

Out of scope

  • Immutable [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 of dunk diff/dunk show. Doistbot isn't installed locally.

🤖 Generated with Claude Code

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
amix marked this pull request as ready for review May 16, 2026 16:20
@amix
amix merged commit 14f426f into main May 16, 2026
2 checks passed
@amix amix mentioned this pull request May 16, 2026
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`.
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.

1 participant