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

Re: [PATCH 2/3] t: mailmap: add 'git blame -e' tests

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 5, 2012, 20:38 UTC
Message-ID
<7vvcnlggno.fsf@alter.siamese.dyndns.org>
In-Reply-To
<CAMP44s2djXurzMSXLOAkx84Sm8P2YV67M1yS2AuidkfGbTdmEQ@mail.gmail.com>
Felipe Contreras <felipe.contreras@gmail.com> writes:
Show 13 quoted lines
>>> Look at the title:
>>> add 'git blame -e' tests
>>>
>>> s/blame/blame -e/
>>
>> And?  After copy/pasting this particular test with that substitution,
>> what do we get a test for?
>
> For 'git blame -e'.
>
>> What class of problem is it supposed to catch?
>
> Problems related to 'git blame -e'?

You very well know that we know you better than that, so it is no use to pretend to be dumb. It does not do anything other than wasting bandwidth and irritating readers.

You know that you are not addressing "git blame with the -e option shows wrong line numbers on its output". The symptom you are checking with is "e-mail address output from 'blame -e' used to add an extra '>' at the end when only name is mapped, and I fixed it with the previous patch."

Why is it so hard to either
 (1) give the more descriptive answer upfront when somebody who did not
     read the first patch of the 3-patch series pointed it out the comment
     is not descriptive enough the first time; or
 (2) give the more descriptive answer and then say "we could do that, but
     when somebody views this change in "git log" as a part of 3-patch
     series, it should be clear enough---so let's aim for brevity instead
     of adding that two-line description" to defend the line in the patch?
> Or just apply it. Don't let the perfect be the enemy of the good.
Perfect is the enemy of the good, but it is not an excuse to be sloppy.

I tend to think that a single line "# blame -e" is sufficient if this were a part of just a single patch that has the fix and the test to guard the fix against future breakage (i.e. "not sloppy"). I would even say that not even "# blame" is necessary in such a case.

But if this is a standalone patch to add this test, it does not describe what it wants to test very well.

In any case, I have doubts that the fix should go to blame and not to map_user(), so I'll see what happens in the further discussions.

Thanks.
Previous: Felipe ContrerasNext: Felipe Contreras
Message 12 of 22 in “blame: fix output with mailmap”
  1. 0/3 blame: fix output with mailmapFelipe Contreras, Feb 4, 2012
  2. 1/3 blame: fix email output with mailmapFelipe Contreras, Feb 4, 2012
  3. Jeff KingFeb 4, 2012
  4. Thomas RastFeb 5, 2012
  5. Felipe ContrerasFeb 5, 2012
  6. Jeff KingFeb 6, 2012
  7. 2/3 t: mailmap: add 'git blame -e' testsFelipe Contreras, Feb 4, 2012
  8. Jonathan NiederFeb 4, 2012
  9. Felipe ContrerasFeb 4, 2012
  10. Jonathan NiederFeb 4, 2012
  11. Felipe ContrerasFeb 4, 2012
  12. Junio C HamanoFeb 5, 2012
  13. Felipe ContrerasFeb 5, 2012
  14. 3/3 t: mailmap: add simple name translation testFelipe Contreras, Feb 4, 2012
  15. Jonathan NiederFeb 4, 2012
  16. Felipe ContrerasFeb 4, 2012
  17. Jonathan NiederFeb 4, 2012
  18. Felipe ContrerasFeb 4, 2012
  19. Jeff KingFeb 4, 2012
  20. Felipe ContrerasFeb 6, 2012
  21. Jonathan NiederFeb 5, 2012
  22. Felipe ContrerasFeb 6, 2012

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.