aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2009-12-03 22:17:19 +0100
committerBjörn Gustavsson <[email protected]>2009-12-04 15:11:50 +0100
commitf226ff725e0f901d796bb0b41527d4167f719be5 (patch)
tree923504ff8f7175f02cad9028f3555acf9085db21
parent706a2647c16909fae1917a5c85d6b6f8a8a0f437 (diff)
downloadotp-f226ff725e0f901d796bb0b41527d4167f719be5.tar.gz
otp-f226ff725e0f901d796bb0b41527d4167f719be5.tar.bz2
otp-f226ff725e0f901d796bb0b41527d4167f719be5.zip
Add create-topic-branches
-rwxr-xr-xcreate-topic-branches10
1 files changed, 10 insertions, 0 deletions
diff --git a/create-topic-branches b/create-topic-branches
new file mode 100755
index 0000000000..368711e6c6
--- /dev/null
+++ b/create-topic-branches
@@ -0,0 +1,10 @@
+#!/usr/bin/perl -w
+use strict;
+
+my $range = "";
+$range = shift if @ARGV;
+
+foreach (`git log --oneline --first-parent $range`) {
+ next unless /^([\da-f]+) Merge branch '([^\']*)'/;
+ print "git branch $2 $1^2\n";
+}