Skip to content

Instantly share code, notes, and snippets.

@petrmvala
Last active January 23, 2021 23:35
Show Gist options
  • Save petrmvala/070d15405e11fc24878c2469c6a0ef91 to your computer and use it in GitHub Desktop.
Save petrmvala/070d15405e11fc24878c2469c6a0ef91 to your computer and use it in GitHub Desktop.
Playing with git diff
otherfile diff=differ
[diff "differ"]
command = /home/mullins/devel/pokusy/differ.sh
#!/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