Created
September 10, 2018 15:19
-
-
Save Deadlyelder/0065e70e6aa14547545fa1add506c09d to your computer and use it in GitHub Desktop.
GIT_EXTERAL_DIFF script
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
#! /bin/sh | |
path=$1 | |
old_file=$2 | |
old_hex=$3 | |
old_mode=$4 | |
new_file=$5 | |
new_hex=$6 | |
new_mode=$7 | |
printf '%s: ' $path | |
diff $old_file $new_file | grep -v '^[<>-]' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Useage