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

Re: [PATCH 3/5] Add option for using a foreign VCS

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 25, 2009, 18:03 UTC
Message-ID
<7vhc1h5vkt.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<alpine.LNX.1.00.0903251042280.19665@iabervon.org>
Daniel Barkalow <barkalow@iabervon.org> writes:
Show 12 quoted lines
>> > -	if (!prefixcmp(url, "rsync:")) {
>> > +	if (remote && remote->foreign_vcs) {
>> > +	} else if (!prefixcmp(url, "rsync:")) {
>> 
>> 	if (...) {
>>         	; /* empty */
>> 	} else ...
>
> I don't think I've ever tried writing an empty block for git before. It's 
> braces containing a semicolon and comment? (Of course, the reason I wrote 
> this one this way is so that the next patch could put two "+" lines in 
> there and have no "-" lines)

Wasn't a serious "this has to be the final style" suggestion, but more about "what do you mean by this? are you going to add more code here in the later round?" question.

Previous: Daniel BarkalowNext: Daniel Barkalow
Message 4 of 6 in “Add option for using a foreign VCS”
  1. 3/5 Add option for using a foreign VCSDaniel Barkalow, Mar 25, 2009
  2. Junio C HamanoMar 25, 2009
  3. Daniel BarkalowMar 25, 2009
  4. Junio C HamanoMar 25, 2009
  5. Daniel BarkalowMar 25, 2009
  6. Junio C HamanoMar 25, 2009

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.