summaryrefslogtreecommitdiff
path: root/git-cvsimport.perl
diff options
context:
space:
mode:
authorMichael J Gruber <git@drmicha.warpmail.net>2010-11-28 20:39:45 +0100
committerJunio C Hamano <gitster@pobox.com>2010-11-29 17:08:22 -0800
commit549ad6d2f3a7090d6f73f8ebacd5d1db7a0cf90f (patch)
tree674a6d62866f586d8c76d33426c652f1cfafb523 /git-cvsimport.perl
parent1bb28d87e1d8897db662f48455d369860758fbdd (diff)
downloadgit-549ad6d2f3a7090d6f73f8ebacd5d1db7a0cf90f.tar.gz
cvsimport: partial whitespace cleanup
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>
Diffstat (limited to 'git-cvsimport.perl')
-rwxr-xr-xgit-cvsimport.perl16
1 files changed, 8 insertions, 8 deletions
diff --git a/git-cvsimport.perl b/git-cvsimport.perl
index 7ab7bbc9ea..bf953543ac 100755
--- a/git-cvsimport.perl
+++ b/git-cvsimport.perl
@@ -90,8 +90,8 @@ sub write_author_info($) {
# 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;
@@ -99,13 +99,13 @@ sub read_repo_config {
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;
+ }
}
}
}