diff --git a/.gitattributes b/.gitattributes index ec5f7ff..a1f71e8 100644 --- a/.gitattributes +++ b/.gitattributes @@ -10,4 +10,7 @@ composer.lock export-ignore requirements.txt export-ignore unk.flag.svg export-ignore versions.txt export-ignore - +*.gif diff=image +*.jpg diff=image +*.png diff=image +*.ico diff=image diff --git a/tools/git-imgdiff.sh b/tools/git-imgdiff.sh new file mode 100755 index 0000000..c70550d --- /dev/null +++ b/tools/git-imgdiff.sh @@ -0,0 +1,4 @@ +#!/bin/sh +# by http://varya.me/en/posts/image-diffs-with-git/ +compare $2 $1 png:- | montage -geometry +4+4 $2 - $1 png:- | gwenview /dev/stdin +