git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [TOY PATCH] git bisect: introduce 'fixed' and 'unfixed'
@ 2008-06-24 14:17 Johannes Schindelin
  2008-06-24 14:42 ` Stephan Beyer
                   ` (2 more replies)
  0 siblings, 3 replies; 26+ messages in thread
From: Johannes Schindelin @ 2008-06-24 14:17 UTC (permalink / raw)
  To: git


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

^ permalink raw reply related	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2008-06-28 17:53 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-24 14:17 [TOY PATCH] git bisect: introduce 'fixed' and 'unfixed' Johannes Schindelin
2008-06-24 14:42 ` Stephan Beyer
2008-06-24 14:55   ` Johannes Schindelin
2008-06-24 15:16     ` Stephan Beyer
2008-06-24 15:02 ` Nicolas Pitre
2008-06-24 16:38 ` Jeff King
2008-06-24 16:50   ` Johannes Schindelin
2008-06-24 17:09     ` [NON-TOY " Johannes Schindelin
2008-06-24 17:41       ` Jeff King
2008-06-24 19:22         ` Daniel Barkalow
2008-06-24 19:26           ` Johannes Schindelin
2008-06-24 22:30         ` Junio C Hamano
2008-06-27 13:48           ` [PATCH, next version] " Johannes Schindelin
2008-06-27 23:03             ` Junio C Hamano
2008-06-28 13:48               ` Johannes Schindelin
2008-06-28 17:52                 ` Junio C Hamano
2008-06-24 19:59       ` [NON-TOY PATCH] " SZEDER Gábor
2008-06-24 20:06       ` Michael Haggerty
2008-06-24 20:38         ` Johannes Schindelin
2008-06-24 22:31           ` Junio C Hamano
2008-06-24 22:43             ` Nicolas Pitre
2008-06-26  6:03             ` Christian Couder
2008-06-24 22:48         ` Lea Wiemann
2008-06-24 23:53           ` A Large Angry SCM
2008-06-25  7:27             ` Karl Hasselström
2008-06-24 16:54   ` [TOY " Reini Urban

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).