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

Re: [PATCH v2] t4150: fix broken test for am --scissors

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 6, 2018, 15:04 UTC
Message-ID
<xmqqpnyvr0yn.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<CACRoPnTWxYvGfqgGt2r5ETOhfJZnqr1fTO9Fzwp-u25XbMGPPQ@mail.gmail.com>
Paul Tan <pyokagan@gmail.com> writes:
Show 25 quoted lines
> I've taken a look at the original test, and it is pretty broken. My
> ...
> So, there are 3 problems that will need to be fixed.
> ...
> This fixes problem (3) by using an in-body header.
> ...
> This fixes the first half of problem (2) by making the naming of the
> files the same.
> ...
> Nit: I'm not quite sure about naming the tag "scissors-used" though,
> since this commit was not created from the output of "git am
> --scissors". Maybe it should be named `commit-without-scissors-line`
> or something?
>
> This hunk removes the line:
>
>     git format-patch --stdout scissors^ >scissors-patch.eml &&
>
> without a corresponding replacement, but that is fine because the test
> should not be using a patch without a scissors line.
> ...
> This fixes the other half of problem (2) by making the naming of the
> files the same.
> ...
> So, this patch fixes the 3 problems with the tests, and so looks correct to me.

Beautifully explained. There are many styles of patch review, and I'd personally call this "think aloud to follow the patch author's flow of thought." style. Your review is probably one of the best examples of reviews in the style. Very readable, helping readers to reach the same degree of understanding of what problem the patch tries to address and how, and demonostrates the reviewer thought through the problem just as deeply as the patch author, all of which gives weight to the final "looks correct to me".

Thanks, both.  Will queue.
Previous: Paul TanNext: Andrei Rybak
Message 7 of 12 in “[RFC] broken test for git am --scissors”
  1. Andrei RybakAug 3, 2018
  2. t4150: fix broken test for am --scissorsAndrei Rybak, Aug 3, 2018
  3. Junio C HamanoAug 3, 2018
  4. Andrei RybakAug 4, 2018
  5. t4150: fix broken test for am --scissorsAndrei Rybak, Aug 4, 2018
  6. Paul TanAug 6, 2018
  7. Junio C HamanoAug 6, 2018
  8. Andrei RybakAug 6, 2018
  9. Paul TanAug 7, 2018
  10. t4150: fix broken test for am --scissorsAndrei Rybak, Aug 6, 2018
  11. Junio C HamanoAug 6, 2018
  12. Andrei RybakAug 7, 2018

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.