twain

A diff viewer for people who love Meld, but wanted it to be slightly different.

twain showing a diff

Things that are like Meld:

Things we have that Meld doesn’t:

Thins Meld has that we don’t:

Usage

Run twain in your project’s directory to see your uncommitted changes. It can also show other Git revisions, with arguments like git diff’s:

twain HEAD~1                 # the changes made by a commit
twain v1.0..main             # between two revisions
twain src/main.rs            # only these files (the others stay in the sidebar, hidden)
twain v1.0..main -- a.rs b.rs

See twain --help for more.

Comments

Select lines and press C or right-click the mouse to leave a comment on them.

Tell your AI agent to look into twain comment --help so it can participate.

Install

Download a binary or a Flatpak bundle from the latest release or build from source (needs GTK 4, GtkSourceView 5 and libadwaita):

cargo install --git https://github.com/andunieee/twain