Permalink
Browse files

Add support for diffing .sqlite files with Git.

See development/sqlite3dump for more information.
  • Loading branch information...
1 parent beb1e4f commit c2bc81a4103435590c88e4e3913e24f3aed7c3f8 @rudis rudis committed with totycro Sep 5, 2010
Showing with 16 additions and 0 deletions.
  1. +1 −0 .gitattributes
  2. +15 −0 development/sqlite3dump
View
@@ -0,0 +1 @@
+*.sqlite diff=sqlite
View
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+# Create a SQL dump of a SQLite database.
+#
+# This is used to provide diffs of .sqlite files when using Git. To set it up
+# add the following to your ~/.gitconfig or .git/config:
+#
+# [diff "sqlite"]
+# textconv = sqlite3dump
+#
+# And make sure this file is in your PATH. Now git log/git diff/gitk/tig/etc.
+# should show diffs of the .sqlite files.
+
+
+sqlite3 "$1" .dump

0 comments on commit c2bc81a

Please sign in to comment.