git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/2] cvsimport: partial whitespace cleanup

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Dec 29, 2010, 21:55 UTC
Message-ID
<468f815beeede312f98daa66986ce8bf887724b3.1293659350.git.git@drmicha.warpmail.net>
In-Reply-To
<cover.1293659350.git.git@drmicha.warpmail.net>
in preparation of the config parse patch
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
---
 git-cvsimport.perl |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/git-cvsimport.perl b/git-cvsimport.perl
index d27abfe..7888b77 100755
--- a/git-cvsimport.perl
+++ b/git-cvsimport.perl
@@ -91,8 +91,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;
@@ -100,13 +100,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;
+			}
 		}
 	}
 }
-- 
1.7.3.4.865.ga2bc4
Previous: Michael J GruberNext: Michael J Gruber
Message 2 of 3 in “Handle cvsimport config for uppercase options”
  1. 0/2 Handle cvsimport config for uppercase optionsMichael J Gruber, Dec 29, 2010
  2. 1/2 cvsimport: partial whitespace cleanupMichael J Gruber, Dec 29, 2010
  3. 2/2 cvsimport: handle the parsing of uppercase config optionsMichael J Gruber, Dec 29, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.