提交 baa2d4f3 authored 作者: Brian West's avatar Brian West

FS-7989 add --author option

上级 b78a6003
......@@ -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 {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论