diff options
author | Eric Wong <normalperson@yhbt.net> | 2007-01-07 19:35:40 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-01-07 21:32:49 -0800 |
commit | ae41098714898acd52dba291e476a2fedbd2eae2 (patch) | |
tree | 48aa4f9a2c5c4742987533ef352ec2b1ee280190 /git-svn.perl | |
parent | Documentation: clarify definition of "reachable" (diff) | |
download | tgif-ae41098714898acd52dba291e476a2fedbd2eae2.tar.xz |
git-svn: add --prefix= option to multi-init
Also, document --{trunk,branches,tags} options while we're
documenting multi-init options.
Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-svn.perl')
-rwxr-xr-x | git-svn.perl | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/git-svn.perl b/git-svn.perl index 1da31fdc7c..a092be836e 100755 --- a/git-svn.perl +++ b/git-svn.perl @@ -70,7 +70,7 @@ my ($_revision,$_stdin,$_no_ignore_ext,$_no_stop_copy,$_help,$_rmdir,$_edit, $_version, $_upgrade, $_authors, $_branch_all_refs, @_opt_m, $_merge, $_strategy, $_dry_run, $_ignore_nodate, $_non_recursive, $_username, $_config_dir, $_no_auth_cache, - $_pager, $_color); + $_pager, $_color, $_prefix); my (@_branch_from, %tree_map, %users, %rusers, %equiv); my ($_svn_can_do_switch); my @repo_path_split_cache; @@ -134,6 +134,7 @@ my %cmd = ( 'username=s' => \$_username, 'config-dir=s' => \$_config_dir, 'no-auth-cache' => \$_no_auth_cache, + 'prefix=s' => \$_prefix, } ], 'multi-fetch' => [ \&multi_fetch, 'Fetch multiple trees (like git-svnimport)', @@ -595,8 +596,9 @@ sub multi_init { command_noisy('repo-config', 'svn.trunk', $trunk_url); } } - complete_url_ls_init($url, $_branches, '--branches/-b', ''); - complete_url_ls_init($url, $_tags, '--tags/-t', 'tags/'); + $_prefix = '' unless defined $_prefix; + complete_url_ls_init($url, $_branches, '--branches/-b', $_prefix); + complete_url_ls_init($url, $_tags, '--tags/-t', $_prefix . 'tags/'); } sub multi_fetch { |