summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtools/diff.sh11
1 files changed, 9 insertions, 2 deletions
diff --git a/tools/diff.sh b/tools/diff.sh
index 3fd5829..89385b0 100755
--- a/tools/diff.sh
+++ b/tools/diff.sh
@@ -4,8 +4,15 @@ files=`find ext -name '*.[ch]' -o -name parser.rl`
for f in $files
do
- echo $f
b=`basename $f`
g=`find ../ruby/ext/json -name $b`
- diff -u $f $g | less
+ d=`diff -u $f $g`
+ test -z "$d" && continue
+ echo "$d"
+ read -p "Edit diff of $b? " a
+ case $a in
+ [yY]*)
+ vimdiff $f $g
+ ;;
+ esac
done