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

Re: [PATCH v3] bisect: report the found commit with "show"

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 15, 2024, 21:24 UTC
Message-ID
<xmqq7cgyl3pr.fsf@gitster.g>
In-Reply-To
<CAPig+cQu15HzZkeT3+oG3U7iFax5_GYUB=uqwuJxshw-PD=VHQ@mail.gmail.com>
Eric Sunshine <sunshine@sunshineco.com> writes:
Show 5 quoted lines
>> Pass some hard-coded options to "git show" to make the output similar
>> to the one we are replacing, such as showing a patch summary only.
>>
>> Signed-off-By: Peter Krefting <peter@softwolves.pp.se>
>> ---
Curious how you trimmed the trailers from the submitted patch ;-)

Although we do not use Cc: in this project, we do recommend use of the "Reported-by" trailer in Documentation/SubmittingPatches.

>> diff --git a/bisect.c b/bisect.c
>> ...
Show 6 quoted lines
> Style nit: On this project, multi-line comments are formatted like this:
>
>     /*
>      * This is a multi-line
>      * comment.
>      */
True.
> It also feels slightly odd to place each option on its own line in the
> call to strvec_pushl() but then place the terminating NULL on the same
> line as the oid_to_hex() call. But that's a minor and subjective point
> hardly worth mentioning.

I think that is because we may want to tweak the list of options, but no matter what change we make to them in the future, the object name as the last parameter is likely to remain the last one, and with that reasoning, I agree with the layout in the patch as posted.

What is more problematic is that the message is sent with
	Content-Type: text/plain; format=flowed; charset=US-ASCII

and the contents of the message is in that flawed format, possibly corrupting whitespaces in irrecoverable ways.

I _think_ "git am" (actually, "git mailsplit" that is called from it) did a reasonable job this time, but I do not have a lot of confidence in the resulting commit---I would not be surprised if it is not identical to what Peter wanted to give us.

Peter, if the resulting commit I push out later today botches some whitespaces due to this issue, please complain. I'll fix the multi-line comment thing on my end before pushing the today's integration result out.

Thanks.
Previous: Eric SunshineNext: Eric Sunshine
Message 3 of 6 in “bisect: report the found commit with "show"”
  1. bisect: report the found commit with "show"Peter Krefting, Apr 13, 2024
  2. Eric SunshineApr 14, 2024
  3. Junio C HamanoApr 15, 2024
  4. Eric SunshineApr 15, 2024
  5. Jeff KingApr 16, 2024
  6. Peter KreftingApr 16, 2024

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.