Created
November 13, 2014 19:05
-
-
Save samukasmk/9c16733b0f26b2294b7b to your computer and use it in GitHub Desktop.
Example of my script for git diff.
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
#!/bin/bash | |
echo "Opening Modified file: ($5) -> ($2)" | |
os_name=`uname -s` | |
case $os_name in | |
Darwin) opendiff "$2" "$5" > /dev/null 2>&1 | |
;; | |
*) meld "$2" "$5" > /dev/null 2>&1 | |
esac | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment