Skip to content

Commit

Permalink
Add git diff support for .json.bz2 files
Browse files Browse the repository at this point in the history
  • Loading branch information
jdleesmiller committed Sep 24, 2016
1 parent 94352af commit 5051f13
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.json.bz2 diff=diff_bzcat
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ TODO description

TODO developer advice

The model files are stored as bzipped JSON. To make git diffs work on the
underlying text, you can add
```
[diff "diff_bzcat"]
binary = true
textconv = /usr/bin/bzcat
```
to the `.git/config` in this repo once you have checked it out.

## LICENSE

(The MIT License)
Expand Down

0 comments on commit 5051f13

Please sign in to comment.