Skip to content
sqeezyPublic

About

Review changes across branches that share no ancestor — a Windows desktop app

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

kwdiff

CI license

A desktop app for reviewing changes across branches that share no ancestor.

Open a repository, search commit messages across every ref — including a 2019 SVN import sitting next to main — narrow by author, path or date, tick the commits that belong together, and read their patches side by side. A patch is computed against a commit's own parent, so no merge base is needed anywhere.

And for the question that comes right after: pick two tips in the two slots beside the search field (or f / t for the commit under the cursor) and read git diff A B — the same file list and patch pane, a tree diff that needs no common ancestor at all.

Why

git diff A B        two endpoints, no ancestry needed (A..B is the same thing)
git diff A...B      three-dot: needs a merge base
git log --all -p    every ref, as N separate patches
git log A..B        the set you wanted — on unrelated roots it quietly means
                    "all of B", which is why the wrong answer is invisible

No client offers the set: two endpoints, or a range, or a PR. Unrelated imports, vendored histories and orphan branches are exactly where a range has no meaning, so kwdiff composes the patches per commit instead — each is diffed against its own parent, which needs nothing from the graph.

The competitive picture, with sources: docs/research/competitive-landscape.md.

Run it

Needs Node 22+, Rust stable, and git 2.28+ on PATH.

npm install
npm run dev          # browser, with the fixture repository (no git needed)
npm run tauri dev    # the real window, against real git
npm test             # the update loop's story tests
npm run typecheck

Build the Windows installer:

npm run tauri build  # src-tauri/target/release/bundle/nsis/*.exe

Docs

  • The guide — what the app is and how to use it; a reviewer can read the generated guide.html with no toolchain.
  • The feature map — every capability, where it lives and what proves it. Updated with the ticket that changes it.
  • The spec — the decisions and the non-goals.

npm run docs rebuilds the HTML; npm run docs:check (run in CI) fails when it is stale or the version stamps drift.

Shape

src/            Foldkit 0.170 on Effect 4.1.4
  app.ts        Model, Messages, update, Commands (debounce, cancel, load)
  ui.ts         the three panes
  api.ts        the seam: mockGit in the browser, tauriGit in the window
src-tauri/      Rust: seven git commands, cancellation, window
docs/spec.md    what v1 is and is not
docs/wayfinder/ the decision map this was built from
  • The UI is one Model, fact-named Messages and a pure update. Effects are Commands: a 250 ms debounced search, a stale-result guard (searchId), a file-list load, a patch load.
  • Rust owns git: open_repo, refs, search, cancel_search, files, patch, roots. Fixed argv, --no-pager, kill_on_drop, no shell.
  • Patches cross the IPC bridge as bytes (tauri::ipc::Response), never as JSON.
  • Runtime.makeElement: the window owns no document, sets its own title, and has its own crash surface.

Status

v1 in progress. Search with filters, the commit checklist with range selection, pane and hunk navigation, and two-endpoint compare work today, against 99 tests (92 over the update loop, 7 over the patch gutter and its cap), 7 Rust unit tests and an e2e gate of 57 checks over the real window that CI runs.

License

MIT.

About

Review changes across branches that share no ancestor — a Windows desktop app

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages