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

Re: [PATCH 2/4] bisect: replace hardcoded "bad|good" by variables

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Jun 9, 2015, 12:39 UTC
Message-ID
<vpqtwuh9ht7.fsf@anie.imag.fr>
In-Reply-To
<CAP8UFD1mWaXwJwFLcw2f4Qj1v_Ves1UHEH7qkk8yq6WhjLeZGQ@mail.gmail.com>
Christian Couder <christian.couder@gmail.com> writes:
> "old/new" is not more generic than "good/bad".

I disagree with this. In any case, we're looking for a pair of commits where one is a direct parent of the other. So in the end, there's always the old behavior and the new behavior in the end.

In natural language, I can write "terms good/bad correspond to the situation where the new behavior is a bug and the old behavior was correct" and "terms fixed/unfixed correspond to the situation where the new behavior does not have a bug and the old one does", so I can describe several pairs of terms with old/new. When looking for a bugfix, saying "NAME_GOOD=new" seems backward. I would read this as "the good behavior is to be new", while I would expect "the new behavior is to be good".

> and as "good/bad" is older and is the default we should keep that in
> the names.

I agree with this part though. If people working with the bisect codebase (which includes you) are more comfortable with good/bad, that's a valid reason to keep it.

IOW, I still think old/new is more generic, but that is not a strong objection and should not block the patch.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Christian CouderNext: Junio C Hamano
Message 6 of 24 in “bisect : correction of typo”
  1. 1/4 bisect : correction of typoAntoine Delaite, Jun 8, 2015
  2. 2/4 bisect: replace hardcoded "bad|good" by variablesAntoine Delaite, Jun 8, 2015
  3. Junio C HamanoJun 8, 2015
  4. Matthieu MoyJun 9, 2015
  5. Christian CouderJun 9, 2015
  6. Matthieu MoyJun 9, 2015
  7. Junio C HamanoJun 9, 2015
  8. 3/4 bisect: simplify the add of new bisect termsAntoine Delaite, Jun 8, 2015
  9. Junio C HamanoJun 8, 2015
  10. Antoine DelaiteJun 9, 2015
  11. Matthieu MoyJun 10, 2015
  12. Matthieu MoyJun 9, 2015
  13. Christian CouderJun 9, 2015
  14. Louis-Alexandre StuberJun 9, 2015
  15. Junio C HamanoJun 10, 2015
  16. Louis-Alexandre StuberJun 10, 2015
  17. Matthieu MoyJun 10, 2015
  18. Louis-Alexandre StuberJun 10, 2015
  19. Matthieu MoyJun 10, 2015
  20. Junio C HamanoJun 10, 2015
  21. Matthieu MoyJun 10, 2015
  22. Junio C HamanoJun 10, 2015
  23. 4/4 bisect: add the terms old/newAntoine Delaite, Jun 8, 2015
  24. Junio C HamanoJun 8, 2015

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.