FS-7989 add --author option
This commit is contained in:
parent
b78a600375
commit
baa2d4f37e
|
@ -11,7 +11,8 @@ GetOptions(
|
||||||
'msg=s' => \$opts{msg},
|
'msg=s' => \$opts{msg},
|
||||||
'debug' => \$opts{debug},
|
'debug' => \$opts{debug},
|
||||||
'append=s' => \$opts{append},
|
'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";
|
) 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";
|
$gitcmd = "git commit $args -t /tmp/$opts{bug}.tmp";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($opts{author}) {
|
||||||
|
$gitcmd .= " --author \"$opts{author}\"";
|
||||||
|
}
|
||||||
|
|
||||||
if ($opts{debug}) {
|
if ($opts{debug}) {
|
||||||
print "CMD: $gitcmd\n";
|
print "CMD: $gitcmd\n";
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue