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

Re: [NON-TOY PATCH] git bisect: introduce 'fixed' and 'unfixed'

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 24, 2008, 22:30 UTC
Message-ID
<7vej6mbh3w.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20080624174157.GB9500@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 14 quoted lines
> On Tue, Jun 24, 2008 at 06:09:28PM +0100, Johannes Schindelin wrote:
>
>> 	And this is my first attempt at a proper patch for it.
>> 
>> 	Now with documentation, and hopefully all places where the
>> 	user is being told about a "bad" commit.
>
> This looks reasonably sane to me. The only thing I can think of that
> we're missing is that "git bisect visualize" will still show the refs as
> "bisect/bad" and "bisect/good".
>
> To fix that, you'd have to ask people to start the bisect by saying "I
> am bisecting to find a fix, not a breakage." And then you could change
> the refnames and all of the messages as appropriate.

It probably is not just a good idea, but is a necessary fix, to remove confusion like this example that appears everywhere:

Show 5 quoted lines
>  		echo >&2 'You '$THEN'need to give me at least one good' \
> -			'and one bad revisions.'
> +			'and one bad (or fixed) revision.'
>  		echo >&2 '(You can use "git bisect bad" and' \
>  			'"git bisect good" for that.)'

People who are reading the change Dscho did in the "patch" form may not notice it, but imagine how the above looks to the end user who was told that "new bisect can now look for fixes", who does not need to nor even want to know that the new feature is implemented by making bad and fixed synonyms.

They need to mentally reword "good" into "unfixed" and "bisect bad" into "bisect fixed" while reading the output from the above pieces, but the point of this new "look for fixes" feature is they do not have to do the rewording anymore!

Previous: Johannes SchindelinNext: Johannes Schindelin
Message 12 of 26 in “git bisect: introduce 'fixed' and 'unfixed'”
  1. git bisect: introduce 'fixed' and 'unfixed'Johannes Schindelin, Jun 24, 2008
  2. Stephan BeyerJun 24, 2008
  3. Johannes SchindelinJun 24, 2008
  4. Stephan BeyerJun 24, 2008
  5. Nicolas PitreJun 24, 2008
  6. Jeff KingJun 24, 2008
  7. Johannes SchindelinJun 24, 2008
  8. git bisect: introduce 'fixed' and 'unfixed'Johannes Schindelin, Jun 24, 2008
  9. Jeff KingJun 24, 2008
  10. Daniel BarkalowJun 24, 2008
  11. Johannes SchindelinJun 24, 2008
  12. Junio C HamanoJun 24, 2008
  13. git bisect: introduce 'fixed' and 'unfixed'Johannes Schindelin, Jun 27, 2008
  14. Junio C HamanoJun 27, 2008
  15. Johannes SchindelinJun 28, 2008
  16. Junio C HamanoJun 28, 2008
  17. SZEDER GáborJun 24, 2008
  18. Michael HaggertyJun 24, 2008
  19. Johannes SchindelinJun 24, 2008
  20. Junio C HamanoJun 24, 2008
  21. Nicolas PitreJun 24, 2008
  22. Christian CouderJun 26, 2008
  23. Lea WiemannJun 24, 2008
  24. A Large Angry SCMJun 24, 2008
  25. Karl HasselströmJun 25, 2008
  26. Reini UrbanJun 24, 2008

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.