| 1 | #!/bin/bash |
| 2 | |
| 3 | # if first arg provided, use it, otherwise default to release |
| 4 | DELTA_BIN=${1:-./target/release/delta} |
| 5 | DELTA="$DELTA_BIN --no-gitconfig --raw --max-line-length 0" |
| 6 | |
| 7 | ANSIFILTER="./etc/bin/ansifilter" |
| 8 | GIT_ARGS="log --patch --stat --numstat" |
| 9 | diff -u <(git $GIT_ARGS | $ANSIFILTER) <(git $GIT_ARGS | DELTA_FEATURES= $DELTA | $ANSIFILTER) |