about summary refs log blame commit diff stats
path: root/subx/g
blob: 25da223271c29fc31795bf03516af91e9fec5cbc (plain) (tree)
1
2
3
4
5
6
7
8
9
10




                                                  
                                        



          
                       

                       





                                      
#!/usr/bin/env zsh
# Run git commands on a specific example's source.

if [ $# -eq 0 ]
then
  echo "g <git command> <args> <target>"
  exit 1
fi

arg=( $* )
target=$arg[${#arg[@]}]
unset "arg[${#arg[@]}]"

if [[ $target == 'test'* ]]
then
  git ${arg[@]} ./teensy/$target*.[cs]
else
  git ${arg[@]} ./$target*.subx
fi