Skip to content

Instantly share code, notes, and snippets.

@lmazardo
Last active June 13, 2018 14:43
Show Gist options
  • Save lmazardo/11841cf5b037ee4338a008e55bf011af to your computer and use it in GitHub Desktop.
Save lmazardo/11841cf5b037ee4338a008e55bf011af to your computer and use it in GitHub Desktop.
  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
@lmazardo
Copy link
Author

git diff
diffing Matrice_de_flux.xlsx /tmp/jhLgQi_Matrice_de_flux.xlsx 83a2e2e8ec91d45b1d8cbebf4243fa3af8fa9520 100644 Matrice_de_flux.xlsx 0000000000000000000000000000000000000000 100644
DIFF  Cell at     OXO-PRP!B10 => '
SSUP-66390
CLOUD-2112' v/s 'SSUP-66320'
DIFF  Cell at     OJO-PRP!E12 => 'OK' v/s 'En cours'
----------------- DIFF -------------------
Sheets: [OXO-PRP]
Rows: [10, 12]
Cols: [B, E]
----------------- EXTRA WB1 -------------------
Sheets: []
Rows: []
Cols: []
----------------- EXTRA WB2 -------------------
Sheets: []
Rows: []
Cols: []
-----------------------------------------
Excel files Matrice_de_flux.xlsx and /tmp/jhLgQi_Matrice_de_flux.xlsx differ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment