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

Re: [PATCH] git-cvsserver: added support for update -p

From
Andreas Ericsson <ae@op5.se>
Date
Oct 11, 2007, 08:45 UTC
Message-ID
<470DE29A.5010001@op5.se>
In-Reply-To
<20071010200029.GK31659@planck.djpig.de>
Frank Lichtenheld wrote:
Show 20 quoted lines
> On Wed, Oct 10, 2007 at 01:16:03PM +0200, Jan Wielemaker wrote:
>> +	# if we have a -p we should just send the file
>> +        if ( exists ( $state->{opt}{p} ) )
>> +	{
>> +	    if ( open my $fh, '-|', "git-cat-file", "blob", $meta->{filehash} )
>> +	    {   while ( <$fh> )
>> +		{ print "M " . $_;
>> +		}
>> +		close $fh or die ("Couldn't close filehandle for transmitfile(): $!");
>> +	    } else
>> +	    { die("Couldn't execute git-cat-file");
>> +	    }
>> +
>> +	    next;
>> +	}
> 
> 
> There seems to be inconsistent whitespace in the patch.
> And please never do that else\n{ again, it hurts my eye ;)
> 
That cuddled opening brace hurts mine more.
{ while()\n{ print()...

It's usually a good idea to pick some indentation style that at least *some* tool can create, and when contributing to a project it's usually considered good form to stick to the style already used.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
Previous: Frank LichtenheldNext: Frank Lichtenheld
Message 8 of 13 in “git-cvsserver: added support for update -p”
  1. git-cvsserver: added support for update -pJan Wielemaker, Oct 10, 2007
  2. Johannes SchindelinOct 10, 2007
  3. Jan WielemakerOct 10, 2007
  4. Johannes SchindelinOct 10, 2007
  5. Jan WielemakerOct 10, 2007
  6. Johannes SchindelinOct 10, 2007
  7. Frank LichtenheldOct 10, 2007
  8. Andreas EricssonOct 11, 2007
  9. cvsserver: added support for update -pFrank Lichtenheld, Oct 11, 2007
  10. Jan WielemakerOct 11, 2007
  11. Frank LichtenheldOct 11, 2007
  12. Johannes SchindelinOct 11, 2007
  13. Frank LichtenheldOct 11, 2007

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.