summaryrefslogtreecommitdiffstats
path: root/tests/test_raw_output_matches_git_on_full_repo_history
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2020-06-28 15:00:42 -0400
committerDan Davison <dandavison7@gmail.com>2020-06-28 15:36:16 -0400
commit5d4b8f51a949806b20b133dde0faeaaf35a0efd5 (patch)
tree0bf86ce30cd3ef2bf79760678d1e7d88fe7d5aed /tests/test_raw_output_matches_git_on_full_repo_history
parente0c07a77323bad71d82043f1418d2538ade5a7e3 (diff)
Rename option: color-only => raw
Diffstat (limited to 'tests/test_raw_output_matches_git_on_full_repo_history')
-rwxr-xr-xtests/test_raw_output_matches_git_on_full_repo_history4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_raw_output_matches_git_on_full_repo_history b/tests/test_raw_output_matches_git_on_full_repo_history
new file mode 100755
index 00000000..8dcde90f
--- /dev/null
+++ b/tests/test_raw_output_matches_git_on_full_repo_history
@@ -0,0 +1,4 @@
+#!/bin/bash
+DELTA="./target/release/delta --no-gitconfig --raw"
+GIT_ARGS="log --patch --stat --numstat"
+diff -u <(git $GIT_ARGS | perl -pe 's/\e\[[0-9;]*[mK]//g') <(git $GIT_ARGS | $DELTA | perl -pe 's/\e\[[0-9;]*[mK]//g')