Skip to content

rsookram/simple-git-diff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-git-diff

simple-git-diff simplifies diff output for git on the command line. Inspired by diff-so-fancy.

Installation

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

Usage

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

Building

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

Dependencies

The term_size crate is used when drawing horizontal dividers which span the width of the terminal.

License

Licensed under either of

at your option.

About

Custom pager for git which simplifies diffs

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages