-
Install [ExcelCompare] (https://github.com/na-ka-na/ExcelCompare) in $HOME/bin/excel_cmp
-
Wrapper for non-zero exit code for excel_cmp : $HOME/bin/excel_cmp
echo "diffing $*"
$HOME/bin/excel_cmp/bin/excel_cmp "$1" "$2"
exit 0
- Configure [git config] (file://)
[diff "excel"]
command = $HOME/bin/wrapper_excel_diff.sh
- Add/commit/push .gitattributes file
.gitattributes
*.xls diff=excel
*.xlsx diff=excel