]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7989 add --author option
authorBrian West <brian@freeswitch.org>
Mon, 24 Aug 2015 22:44:55 +0000 (17:44 -0500)
committerBrian West <brian@freeswitch.org>
Mon, 24 Aug 2015 22:44:55 +0000 (17:44 -0500)
support-d/utils/fixbug.pl

index 188a19aed42d1aa89a1dd6ea61afa8ba52d1fed4..de3891bf6f3975287e45538ba4976efde206dc66 100755 (executable)
@@ -11,7 +11,8 @@ GetOptions(
     'msg=s' => \$opts{msg},
     'debug' => \$opts{debug},
     'append=s' => \$opts{append},
-    'comment=s' => \$opts{comment}
+    'comment=s' => \$opts{comment},
+    'author=s' => \$opts{author}
     ) or die "Usage: $0 -bug <bug-id> [-m [edit|<msg>]] [-append <msg>] [-debug] <files>\n";
 
 
@@ -70,6 +71,10 @@ if ($auto) {
   $gitcmd = "git commit $args -t /tmp/$opts{bug}.tmp";
 }
 
+if ($opts{author}) {
+    $gitcmd .= " --author \"$opts{author}\"";
+}
+
 if ($opts{debug}) {
     print "CMD: $gitcmd\n";
 } else {