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

Re: [PATCH 1/3 v4] Add a macro DIFF_QUEUE_CLEAR.

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 2, 2010, 15:26 UTC
Message-ID
<7vvd7tnihx.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20100802124729.GK12084MdfPADPa@purples>
Sven Verdoolaege <skimo@kotnet.org> writes:
Show 18 quoted lines
> On Thu, May 06, 2010 at 09:52:27PM -0700, Bo Yang wrote:
>> Refactor the diff_queue_struct code, this macro help
>> to reset the structure.
>> 
> [..]
>> 
>> diff --git a/diff.c b/diff.c
>> index e40c127..4a350e3 100644
>> --- a/diff.c
>> +++ b/diff.c
>> @@ -2540,6 +2540,7 @@ static void run_checkdiff(struct diff_filepair *p, struct diff_options *o)
>>  void diff_setup(struct diff_options *options)
>>  {
>>  	memset(options, 0, sizeof(*options));
>> +	memset(&diff_queued_diff, 0, sizeof(diff_queued_diff));
>>  
>
> What's this line for?

I don't think this change is warranted. The macro was supposed to reduce the repetition of assignment to q->queue, q->nr and q->alloc, and nothing else.

Also the commit messages in this series are unreadable---I should have been a bit more careful.

Sorry and thanks for noticing.
Previous: Sven VerdoolaegeNext: Bo Yang
Message 6 of 7 in “Make git log --follow find copies among unmodified files.”
  1. 0/3 Make git log --follow find copies among unmodified files.Bo Yang, May 7, 2010
  2. 1/3 Add a macro DIFF_QUEUE_CLEAR.Bo Yang, May 7, 2010
  3. 2/3 Make diffcore_std only can run once before a diff_flushBo Yang, May 7, 2010
  4. 3/3 Make git log --follow find copies among unmodified files.Bo Yang, May 7, 2010
  5. Sven VerdoolaegeAug 2, 2010
  6. Junio C HamanoAug 2, 2010
  7. Bo YangAug 2, 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.