-
Notifications
You must be signed in to change notification settings - Fork 411
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
270de8f
commit dad1aea
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |