Last active
January 23, 2021 23:35
-
-
Save petrmvala/070d15405e11fc24878c2469c6a0ef91 to your computer and use it in GitHub Desktop.
Playing with git diff
This file contains hidden or 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
otherfile diff=differ |
This file contains hidden or 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
[diff "differ"] | |
command = /home/mullins/devel/pokusy/differ.sh |
This file contains hidden or 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
#!/usr/bin/env bash | |
echo " | |
path: $1 | |
old_file: $2 | |
old_hash: $3 | |
old_perm: $4 | |
new_file: $5 | |
new_hash: $6 | |
new_perm: $7 | |
" | |
echo "Old file" | |
cat $2 | |
echo "New file" | |
cat $5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment