|
33 | 33 | use IO::File qw//;
|
34 | 34 | use File::Basename qw/dirname basename/;
|
35 | 35 | use File::Path qw/mkpath/;
|
36 |
| -use Getopt::Long qw/:config gnu_getopt no_ignore_case auto_abbrev pass_through/; |
| 36 | +use Getopt::Long qw/:config gnu_getopt no_ignore_case auto_abbrev/; |
37 | 37 | use IPC::Open3;
|
38 | 38 | use Git;
|
39 | 39 |
|
@@ -168,6 +168,7 @@ BEGIN
|
168 | 168 | my %opts = %{$cmd{$cmd}->[2]} if (defined $cmd);
|
169 | 169 |
|
170 | 170 | read_repo_config(\%opts);
|
| 171 | +Getopt::Long::Configure('pass_through') if $cmd eq 'log'; |
171 | 172 | my $rv = GetOptions(%opts, 'help|H|h' => \$_help, 'version|V' => \$_version,
|
172 | 173 | 'minimize-connections' => \$Git::SVN::Migration::_minimize,
|
173 | 174 | 'id|i=s' => \$Git::SVN::default_ref_id,
|
@@ -229,6 +230,8 @@ sub usage {
|
229 | 230 | next if /^multi-/; # don't show deprecated commands
|
230 | 231 | print $fd ' ',pack('A17',$_),$cmd{$_}->[1],"\n";
|
231 | 232 | foreach (keys %{$cmd{$_}->[2]}) {
|
| 233 | + # mixed-case options are for .git/config only |
| 234 | + next if /[A-Z]/ && /^[a-z]+$/i; |
232 | 235 | # prints out arguments as they should be passed:
|
233 | 236 | my $x = s#[:=]s$## ? '<arg>' : s#[:=]i$## ? '<num>' : '';
|
234 | 237 | print $fd ' ' x 21, join(', ', map { length $_ > 1 ?
|
|
0 commit comments