#!/usr/bin/env zsh# git diff a specific example's generated binary after converting through xxd.if[$#-eq0]thenecho"ggdiff <target> [rev]"exit1fitarget=$1rev=${2:-HEAD}tmp=`mktemp`if[[$target=='test'*]]thengitshow${rev}:subx/teensy/$target>$tmpxdiff$tmpteensy/$targetelsegitshow${rev}:subx/$target>$tmpxdiff$tmp$targetfi