Skip to content

Commit

Permalink
cvsimport: partial whitespace cleanup
Browse files Browse the repository at this point in the history
in preparation of the config parse patch

Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Michael J Gruber authored and Junio C Hamano committed Nov 30, 2010
1 parent 1bb28d8 commit 549ad6d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions git-cvsimport.perl
Original file line number Diff line number Diff line change
Expand Up @@ -90,22 +90,22 @@ ($)

# convert getopts specs for use by git config
sub read_repo_config {
# Split the string between characters, unless there is a ':'
# So "abc:de" becomes ["a", "b", "c:", "d", "e"]
# Split the string between characters, unless there is a ':'
# So "abc:de" becomes ["a", "b", "c:", "d", "e"]
my @opts = split(/ *(?!:)/, shift);
foreach my $o (@opts) {
my $key = $o;
$key =~ s/://g;
my $arg = 'git config';
$arg .= ' --bool' if ($o !~ /:$/);

chomp(my $tmp = `$arg --get cvsimport.$key`);
chomp(my $tmp = `$arg --get cvsimport.$key`);
if ($tmp && !($arg =~ /--bool/ && $tmp eq 'false')) {
no strict 'refs';
my $opt_name = "opt_" . $key;
if (!$$opt_name) {
$$opt_name = $tmp;
}
no strict 'refs';
my $opt_name = "opt_" . $key;
if (!$$opt_name) {
$$opt_name = $tmp;
}
}
}
}
Expand Down

0 comments on commit 549ad6d

Please sign in to comment.