simple-git-diff simplifies diff output for git on the command line. Inspired by diff-so-fancy.
Currently, pre-compiled binaries of simple-git-diff aren't being distributed. You can install it with Cargo by running
cargo install --git https://github.com/rsookram/simple-git-diff
Git can be configured to use simple-git-diff for all diff output with
git config --global core.pager 'simple-git-diff | less --tabs=4 -RFX'
If you want to try it out without changing your git settings, you can use the
GIT_PAGER
environment variable like:
GIT_PAGER='simple-git-diff | less --tabs=4 -RFX' git diff
simple-git-diff can be built from source by cloning this repository and using Cargo.
git clone https://github.com/rsookram/simple-git-diff
cd simple-git-diff
cargo build --release
The term_size
crate is used when
drawing horizontal dividers which span the width of the terminal.
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
at your option.