Skip to content

Commit

Permalink
Make it interactive
Browse files Browse the repository at this point in the history
  • Loading branch information
flori committed Jun 21, 2016
1 parent 7730d13 commit 5d28359
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tools/diff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5d28359

Please sign in to comment.