CSVHub - GitHub diffs for CSV files
Over the last few months, I've spent some time working on how we collaborate on data publishing, particularly when using GitHub, an integral part of our software development process.
I wrote a couple of articles last year about how git could be used for data, and came to the conclusion that rendering of CSV diffs was an important feature that was needed. Using Paul Fitzpatrick's brilliant daff library, I put CSV diffs into GitLab (an open source GitHub clone), but then again most people aren't using that.
Shortly after this, GitHub added CSV viewing support in their web interface, which is fantastic, but still doesn't handle changes well.
Well, this week was innovation week again, and my colleague Stuart came up with the suggestion of putting the CSV diff capability we did for GitLab into a browser plugin that would work on the main GitHub site. This seemed like an excellent idea.
In the end, it was pretty easy, and version 1.0.0 is now released! If you're running Chrome, you can install it from the Chrome Web Store by clicking below:
It will let you see additions, deletions and modifications per-cell, in both commit views and pull requests.
Want some examples? Install the extension and take a look at these:
It's open source, of course, so if you want to contribute improvements, or find any errors in it, you can visit the GitHub repository.
And, if you're from GitHub, I would dearly love to have this built in to the main site. I've even written you a Ruby port of the daff code so you can do it all server side. Go on, you know you want to!