git-svn: add --username/commit-url options for branch/tag
Add ability to specify on the command line the username to perform the operation as and the writable URL of the repository to perform it on. [ew: shortened subject] Signed-off-by: Igor Mironov <igor.a.mironov@gmail.com> Acked-by: Eric Wong <normalperson@yhbt.net>
Igor Mironov committed
Jan 12, 2010 at 03:21 UTC
6594f0b793507a1e00f79c9884b8911c6d047c1c
1 file changed
+6
-2
git-svn.perl
+6
-2
@@ -155,12 +155,16 @@ my %cmd = (
155
{ 'message|m=s' => \$_message,
156
'destination|d=s' => \$_branch_dest,
157
'dry-run|n' => \$_dry_run,
158
- 'tag|t' => \$_tag } ],
158
+ 'tag|t' => \$_tag,
159
+ 'username=s' => \$Git::SVN::Prompt::_username,
160
+ 'commit-url=s' => \$_commit_url } ],
161
tag => [ sub { $_tag = 1; cmd_branch(@_) },
162
'Create a tag in the SVN repository',
163
{ 'message|m=s' => \$_message,
164
'destination|d=s' => \$_branch_dest,
163
- 'dry-run|n' => \$_dry_run } ],
165
+ 'dry-run|n' => \$_dry_run,
166
+ 'username=s' => \$Git::SVN::Prompt::_username,
167
+ 'commit-url=s' => \$_commit_url } ],
168
'set-tree' => [ \&cmd_set_tree,
169
"Set an SVN repository to a git tree-ish",
170
{ 'stdin' => \$_stdin, %cmt_opts, %fc_opts, } ],