Skip to content

Commit

Permalink
Add support for diffing .sqlite files with Git.
Browse files Browse the repository at this point in the history
See development/sqlite3dump for more information.
  • Loading branch information
rudis authored and totycro committed Sep 5, 2010
1 parent beb1e4f commit c2bc81a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
@@ -0,0 +1 @@
*.sqlite diff=sqlite
15 changes: 15 additions & 0 deletions development/sqlite3dump
@@ -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.