@matheusbsbs / matheus-bagliano / commits / 549ad6d2f3
Fork 0

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>

Michael J Gruber committed Nov 28, 2010 at 20:39 UTC 549ad6d2f3a7090d6f73f8ebacd5d1db7a0cf90f
1 file changed +8 -8
git-cvsimport.perl
+8 -8
@@ -90,8 +90,8 @@ sub write_author_info($) {
90
91 # convert getopts specs for use by git config
92 sub read_repo_config {
93 - # Split the string between characters, unless there is a ':'
94 - # So "abc:de" becomes ["a", "b", "c:", "d", "e"]
93 + # Split the string between characters, unless there is a ':'
94 + # So "abc:de" becomes ["a", "b", "c:", "d", "e"]
95 my @opts = split(/ *(?!:)/, shift);
96 foreach my $o (@opts) {
97 my $key = $o;
@@ -99,13 +99,13 @@ sub read_repo_config {
99 my $arg = 'git config';
100 $arg .= ' --bool' if ($o !~ /:$/);
101
102 - chomp(my $tmp = `$arg --get cvsimport.$key`);
102 + chomp(my $tmp = `$arg --get cvsimport.$key`);
103 if ($tmp && !($arg =~ /--bool/ && $tmp eq 'false')) {
104 - no strict 'refs';
105 - my $opt_name = "opt_" . $key;
106 - if (!$$opt_name) {
107 - $$opt_name = $tmp;
108 - }
104 + no strict 'refs';
105 + my $opt_name = "opt_" . $key;
106 + if (!$$opt_name) {
107 + $$opt_name = $tmp;
108 + }
109 }
110 }
111 }