From: Ralph Ronnquist Date: Mon, 20 Dec 2021 03:25:07 +0000 (+1100) Subject: minor fixes X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;h=c042ae695606f96726e0ebfdf6a6b5ee12367991;p=rrq%2Freviewtool.git minor fixes --- diff --git a/git-differ b/git-differ index 6fcf790..437a6b5 100755 --- a/git-differ +++ b/git-differ @@ -6,13 +6,14 @@ EXT="${4##*.}" case "$EXT" in - png|jpg|bmp) + svg|png|jpg|bmp|gif) F1=$(mktemp --suffix=$EXT) - git cat-file -p $1:$4 > $F1 F2=$(mktemp --suffix=$EXT) - git cat-file -p $2:$4 > $F2 - montage $F1 $F2 -tile 2x1 -geometry +5+5 -border 2 png:- | display - - rm -f $F1 $F2 + git cat-file -p $1:$4 > $F1 || F1="label:CREATED >>> " + git cat-file -p $2:$4 > $F2 || F2="label: >>> DELETED" + montage -label '' "$F1" "$F2" \ + -tile 2x1 -geometry +5+5 -border 2 png:- | display - + rm -f "$F1" "$F2" ;; *) git meld $*