FS-7989 add --author option

This commit is contained in:
Brian West 2015-08-24 17:44:55 -05:00
parent b78a600375
commit baa2d4f37e
1 changed files with 6 additions and 1 deletions

View File

@ -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 {