about summary refs log tree commit diff stats
path: root/subx/g
blob: dc57cceb4b7b5043fa736d6d3e0f25adde28a60c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env zsh
# Run git commands on a specific example's source.

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

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

git ${arg[@]} ./teensy/test$suffix*.[cs]