diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000000..623d12be8ec --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.sqlite diff=sqlite diff --git a/development/sqlite3dump b/development/sqlite3dump new file mode 100755 index 00000000000..0fbf8fab5c1 --- /dev/null +++ b/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