Skip to content

Instantly share code, notes, and snippets.

@rjbgoudie
Created September 3, 2012 12:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rjbgoudie/3608907 to your computer and use it in GitHub Desktop.
Save rjbgoudie/3608907 to your computer and use it in GitHub Desktop.
For diffs of .odc Oberon BlackBox files (as used by OpenBUGS and WinBUGS) in git
1. Download and compile Gert van Valkenhoef's excellent odcread
https://github.com/gertvv/odcread
This require "iconv"
2. Add the lines below to you ~/.gitconfig
3. Add the lines below to the .gitattributes file in the git repository
*.odc diff=odcread
[diff "odcread"]
textconv = /path/to/odcread
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment