Skip to content

Commit

Permalink
Add test script for #93
Browse files Browse the repository at this point in the history
  • Loading branch information
dandavison committed Feb 12, 2020
1 parent 270de8f commit dad1aea
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions testing/93-binary.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Test script written by @gibfahn in https://github.com/dandavison/delta/issues/93
dir=/tmp/tst
rm -fr $dir && mkdir -p $dir && cd $dir
git init
echo hello > bar
git add bar && git commit -m "added text file bar"
echo -n -e \\x48\\x00\\x49\\x00 > foo
git add foo
GIT_PAGER="delta --theme=TwoDark" git diff --staged
GIT_PAGER=less git diff --staged
git commit -m "added binary file foo"
echo -n -e \\x49\\x00\\x48\\x00 > foo
git add foo
git commit -m "changed binary file foo"
GIT_PAGER="delta --theme=TwoDark" git log -p
GIT_PAGER=less git log -p

0 comments on commit dad1aea

Please sign in to comment.