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

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

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jun 24, 2008, 14:17 UTC
Message-ID
<alpine.DEB.1.00.0806241515460.9925@racer>

When you look for a fix instead of a regression, it can be quite hard to twist your brain into choosing the correct bisect command between 'git bisect bad' and 'git bisect good'.

So introduce the commands 'git bisect fixed' and 'git bisect unfixed'.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
---
	When Randal talked about this on IRC, I laughed.  But I just had 
	the case where it took me _three_ attempts at a bisection, only
	to give up and write this patchlet.
	May it help someone else, too.
 git-bisect.sh |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/git-bisect.sh b/git-bisect.sh
index 8b11107..d833e21 100755
--- a/git-bisect.sh
+++ b/git-bisect.sh
@@ -501,6 +501,8 @@ case "$#" in
 *)
     cmd="$1"
     shift
+    test $cmd = fixed && cmd=bad
+    test $cmd = unfixed && cmd=good
     case "$cmd" in
     help)
         git bisect -h ;;
-- 
1.5.6.127.g3fb9f
Next: Stephan Beyer
Message 1 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.