#diff #git-diff #tui

bin+lib mamediff

A TUI editor for managing unstaged and staged Git diffs

8 releases

0.2.1 Mar 15, 2025
0.2.0 Feb 28, 2025
0.1.3 Feb 16, 2025
0.1.2 Jan 22, 2025
0.0.2 Jan 7, 2025

#251 in Command-line interface

Download history 250/week @ 2025-01-04 230/week @ 2025-01-11 141/week @ 2025-01-18 22/week @ 2025-01-25 6/week @ 2025-02-01 1/week @ 2025-02-08 125/week @ 2025-02-15 44/week @ 2025-02-22 125/week @ 2025-03-01 7/week @ 2025-03-08 141/week @ 2025-03-15 9/week @ 2025-03-22 1/week @ 2025-03-29 2/week @ 2025-04-05

153 downloads per month

MIT license

270KB
2.5K SLoC

mamediff

mamediff Documentation Actions Status License

A TUI editor for managing unstaged and staged Git diffs. Inspired by Magit, this tool focuses on providing a simpler, specialized interface for staging, unstaging, and discarding diffs.

mamediff

Installation

Pre-built binaries

Pre-built binaries for Linux and MacOS are available in the releases page.

// An example to download the binary for Linux.
$ VERSION=0.2.0
$ curl -L https://github.com/sile/mamediff/releases/download/v${VERSION}/mamediff-${VERSION}.x86_64-unknown-linux-musl -o mamediff
$ chmod +x mamediff
$ ./mamediff -h

With Cargo

If you have installed cargo (the package manager for Rust), you can install mamediff with the following command:

$ cargo install mamediff
$ mamediff -h

Usage

Just execute mamediff command within a Git directory. The available key bindings will be displayed in the top-right corner of the window.

$ mamediff
->| Unstaged changes (1 files)                     | (q)uit [ESC,C-c]
  :   modified src/main.rs (1 chunks, -1 +1 lines) | ()        [C-n]
  :     @@ -1,3 +1,3 @@                            | ()        [C-f]
  :        fn main() {                             | (t)oggle   [TAB]
  :       -    println!("Hello, World!");          | (s)tage
  :       +    println!("Hello, mamediff!");       | (D)iscard
  :        }                                       +---- (h)ide -----
  | Staged changes (0 files)

You Might Also Be Interested In

Dependencies

~4–13MB
~171K SLoC