summaryrefslogtreecommitdiffstats
path: root/tests/test_raw_output_matches_git_on_full_repo_history
blob: c71631fbdf10f00821c04f655698ea20f2aff1df (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash

# if first arg provided, use it, otherwise default to release
DELTA_BIN=${1:-./target/release/delta}
DELTA="$DELTA_BIN --no-gitconfig --raw --max-line-length 0"

ANSIFILTER="./etc/bin/ansifilter"
GIT_ARGS="log --patch --stat --numstat"
diff -u <(git $GIT_ARGS | $ANSIFILTER) <(git $GIT_ARGS | $DELTA | $ANSIFILTER)