Debian Codegraph @

etc/examples/93-binary

raw
1 # Test script written by @gibfahn in https://github.com/dandavison/delta/issues/93
2 dir=/tmp/tst
3 rm -fr $dir && mkdir -p $dir && cd $dir
4 git init
5 echo hello > bar
6 git add bar && git commit -m "added text file bar"
7 echo -n -e \\x48\\x00\\x49\\x00 > foo
8 git add foo
9 GIT_PAGER="delta --theme=TwoDark" git diff --staged
10 GIT_PAGER=less git diff --staged
11 git commit -m "added binary file foo"
12 echo -n -e \\x49\\x00\\x48\\x00 > foo
13 git add foo
14 git commit -m "changed binary file foo"
15 GIT_PAGER="delta --theme=TwoDark" git log -p
16 GIT_PAGER=less git log -p