summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-03-10 08:49:50 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-03-10 08:49:50 +0200
commitee3d5caa70fdf76f8afa66e135832a937d5449f9 (patch)
treeeaff7a36826122d46109c8961af47ca3cf6b5c18
parent74936dfd85b4a22dc1ce38f72cab14bf52da6ff8 (diff)
Add branch git script
-rwxr-xr-xgit/branch.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/git/branch.sh b/git/branch.sh
new file mode 100755
index 0000000..6827eb3
--- /dev/null
+++ b/git/branch.sh
@@ -0,0 +1,15 @@
+#! /bin/sh
+
+# Assume this script never run via PATH.
+#
+self=`realpath $0`
+. `dirname $self`/modules
+
+wd=`pwd`
+
+for i in $odb_modules; do
+ echo "branch $i" 1>&2
+ cd $i
+ git branch $*
+ cd $wd
+done