summaryrefslogtreecommitdiff
path: root/git-svn.perl
diff options
context:
space:
mode:
authorIgor Mironov <igor.a.mironov@gmail.com>2010-01-11 16:21:51 (GMT)
committerEric Wong <normalperson@yhbt.net>2010-01-23 11:23:04 (GMT)
commit6594f0b793507a1e00f79c9884b8911c6d047c1c (patch)
treed561f2dfd0b0606595e3ca84d62ab70dd02af456 /git-svn.perl
parent99bacd6c25d30766921468d09323b2c34cf62cb8 (diff)
downloadgit-6594f0b793507a1e00f79c9884b8911c6d047c1c.zip
git-6594f0b793507a1e00f79c9884b8911c6d047c1c.tar.gz
git-6594f0b793507a1e00f79c9884b8911c6d047c1c.tar.bz2
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>
Diffstat (limited to 'git-svn.perl')
-rwxr-xr-xgit-svn.perl8
1 files changed, 6 insertions, 2 deletions
diff --git a/git-svn.perl b/git-svn.perl
index 2e14b22..0fca1be 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -155,12 +155,16 @@ my %cmd = (
{ 'message|m=s' => \$_message,
'destination|d=s' => \$_branch_dest,
'dry-run|n' => \$_dry_run,
- 'tag|t' => \$_tag } ],
+ 'tag|t' => \$_tag,
+ 'username=s' => \$Git::SVN::Prompt::_username,
+ 'commit-url=s' => \$_commit_url } ],
tag => [ sub { $_tag = 1; cmd_branch(@_) },
'Create a tag in the SVN repository',
{ 'message|m=s' => \$_message,
'destination|d=s' => \$_branch_dest,
- 'dry-run|n' => \$_dry_run } ],
+ 'dry-run|n' => \$_dry_run,
+ 'username=s' => \$Git::SVN::Prompt::_username,
+ 'commit-url=s' => \$_commit_url } ],
'set-tree' => [ \&cmd_set_tree,
"Set an SVN repository to a git tree-ish",
{ 'stdin' => \$_stdin, %cmt_opts, %fc_opts, } ],