about summary refs log tree commit diff stats
path: root/subx/gg
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-07-06 23:01:06 -0700
committerKartik Agaram <vc@akkartik.com>2018-07-06 23:12:36 -0700
commit21b5cf52e2e31e26529d9b47fc6fafdf88a73f75 (patch)
tree8e4c6652e02f32c4f962fe2ad1f08b053f3e24dc /subx/gg
parenteca07d6a6bb155947fda25d12e3067dfb25d9abf (diff)
downloadmu-21b5cf52e2e31e26529d9b47fc6fafdf88a73f75.tar.gz
4315
Diffstat (limited to 'subx/gg')
-rwxr-xr-xsubx/gg14
1 files changed, 14 insertions, 0 deletions
diff --git a/subx/gg b/subx/gg
new file mode 100755
index 00000000..03b356f3
--- /dev/null
+++ b/subx/gg
@@ -0,0 +1,14 @@
+#!/usr/bin/env zsh
+# Run git commands on a specific example's generated binary.
+
+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