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
Felipe Contreras <felipe.contreras@gmail.com>
Date
Feb 5, 2012, 21:07 UTC
Message-ID
<CAMP44s0gf196UWQabdqPXF=YwJ0WYtU2P4Y6DCEONvkCDhbJAw@mail.gmail.com>
In-Reply-To
<7vvcnlggno.fsf@alter.siamese.dyndns.org>
On Sun, Feb 5, 2012 at 10:38 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 19 quoted lines
> Felipe Contreras <felipe.contreras@gmail.com> writes:
>
>>>> 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.

That description is *perfectly* fine. It's succinct, there's nothing wrong with that.

There's *nothing* else to say. There's no tests for 'git blame -e', the patch adds tests for 'git blame -e', that's all, thus the title "add 'git blame -e' tests.

The patch is good by itself, it doesn't _need_ any other context. It would detect regressions on 'git blame -e', obviously, which is good.

> 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."
No, that's not true. This patch doesn't do that.
Show 5 quoted lines
> 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
Because it's not needed. Adding tests for 'git blame -e' is good in itself.
Some tests = better than no tests.
>  (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?
What is unclear of "add 'git blame -e' tests"? It adds tests, that's good.
Show 11 quoted lines
>> 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.

It wants to test the output of 'git blame -e', as it can be obviates from the title. Is there something wrong with that?

> 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.
This patch is orthogonal to that; there are no tests for 'git blame -e'.
-- 
Felipe Contreras
Previous: Junio C HamanoNext: Felipe Contreras
Message 13 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.