aboutsummaryrefslogtreecommitdiff
path: root/branch.sh
diff options
context:
space:
mode:
Diffstat (limited to 'branch.sh')
-rwxr-xr-xbranch.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/branch.sh b/branch.sh
new file mode 100755
index 0000000..8b2dda2
--- /dev/null
+++ b/branch.sh
@@ -0,0 +1,18 @@
+#! /bin/sh
+
+. etc/git/modules
+
+wd=`pwd`
+
+for i in $modules; do
+ echo "branch $i" 1>&2
+ cd $i
+ git branch $*
+
+ if [ $? -ne 0 ]; then
+ echo "branch FAILED" 1>&2
+ exit 1
+ fi
+
+ cd $wd
+done