git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] git-bisect: call the found commit "*the* first bad commit"
@ 2009-08-26  8:38 Nanako Shiraishi
  2009-08-26  9:05 ` Junio C Hamano
  2009-08-28  5:31 ` Christian Couder
  0 siblings, 2 replies; 6+ messages in thread
From: Nanako Shiraishi @ 2009-08-26  8:38 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano

.. as we learned in the school ;-)

Signed-off-by: Nanako Shiraishi <nanako3@lavabit.com>
---
 bisect.c                    |    2 +-
 git-bisect.sh               |    2 +-
 t/t6030-bisect-porcelain.sh |   18 +++++++++---------
 3 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/bisect.c b/bisect.c
index 7f20acb..dc18db8 100644
--- a/bisect.c
+++ b/bisect.c
@@ -991,7 +991,7 @@ int bisect_next_all(const char *prefix)
 
 	if (!hashcmp(bisect_rev, current_bad_sha1)) {
 		exit_if_skipped_commits(tried, current_bad_sha1);
-		printf("%s is first bad commit\n", bisect_rev_hex);
+		printf("%s is the first bad commit\n", bisect_rev_hex);
 		show_diff_tree(prefix, revs.commits->item);
 		/* This means the bisection process succeeded. */
 		exit(10);
diff --git a/git-bisect.sh b/git-bisect.sh
index 8969553..6f6f039 100755
--- a/git-bisect.sh
+++ b/git-bisect.sh
@@ -405,7 +405,7 @@ bisect_run () {
 	  exit $res
       fi
 
-      if grep "is first bad commit" "$GIT_DIR/BISECT_RUN" > /dev/null; then
+      if grep "is the first bad commit" "$GIT_DIR/BISECT_RUN" > /dev/null; then
 	  echo "bisect run success"
 	  exit 0;
       fi
diff --git a/t/t6030-bisect-porcelain.sh b/t/t6030-bisect-porcelain.sh
index 1315bab..def397c 100755
--- a/t/t6030-bisect-porcelain.sh
+++ b/t/t6030-bisect-porcelain.sh
@@ -175,7 +175,7 @@ test_expect_success 'bisect skip: successfull result' '
 	git bisect start $HASH4 $HASH1 &&
 	git bisect skip &&
 	git bisect bad > my_bisect_log.txt &&
-	grep "$HASH2 is first bad commit" my_bisect_log.txt &&
+	grep "$HASH2 is the first bad commit" my_bisect_log.txt &&
 	git bisect reset
 '
 
@@ -261,7 +261,7 @@ test_expect_success \
      git bisect good $HASH1 &&
      git bisect bad $HASH4 &&
      git bisect run ./test_script.sh > my_bisect_log.txt &&
-     grep "$HASH3 is first bad commit" my_bisect_log.txt &&
+     grep "$HASH3 is the first bad commit" my_bisect_log.txt &&
      git bisect reset'
 
 # We want to automatically find the commit that
@@ -274,7 +274,7 @@ test_expect_success \
      chmod +x test_script.sh &&
      git bisect start $HASH4 $HASH1 &&
      git bisect run ./test_script.sh > my_bisect_log.txt &&
-     grep "$HASH4 is first bad commit" my_bisect_log.txt &&
+     grep "$HASH4 is the first bad commit" my_bisect_log.txt &&
      git bisect reset'
 
 # $HASH1 is good, $HASH5 is bad, we skip $HASH3
@@ -287,14 +287,14 @@ test_expect_success 'bisect skip: add line and then a new test' '
 	git bisect start $HASH5 $HASH1 &&
 	git bisect skip &&
 	git bisect good > my_bisect_log.txt &&
-	grep "$HASH5 is first bad commit" my_bisect_log.txt &&
+	grep "$HASH5 is the first bad commit" my_bisect_log.txt &&
 	git bisect log > log_to_replay.txt &&
 	git bisect reset
 '
 
 test_expect_success 'bisect skip and bisect replay' '
 	git bisect replay log_to_replay.txt > my_bisect_log.txt &&
-	grep "$HASH5 is first bad commit" my_bisect_log.txt &&
+	grep "$HASH5 is the first bad commit" my_bisect_log.txt &&
 	git bisect reset
 '
 
@@ -335,7 +335,7 @@ test_expect_success 'bisect run & skip: find first bad' '
 	chmod +x test_script.sh &&
 	git bisect start $HASH7 $HASH1 &&
 	git bisect run ./test_script.sh > my_bisect_log.txt &&
-	grep "$HASH6 is first bad commit" my_bisect_log.txt
+	grep "$HASH6 is the first bad commit" my_bisect_log.txt
 '
 
 test_expect_success 'bisect skip only one range' '
@@ -385,7 +385,7 @@ test_expect_success 'bisect does not create a "bisect" branch' '
 	rev_hash6=$(git rev-parse --verify HEAD) &&
 	test "$rev_hash6" = "$HASH6" &&
 	git bisect good > my_bisect_log.txt &&
-	grep "$HASH7 is first bad commit" my_bisect_log.txt &&
+	grep "$HASH7 is the first bad commit" my_bisect_log.txt &&
 	git bisect reset &&
 	rev_hash6=$(git rev-parse --verify bisect) &&
 	test "$rev_hash6" = "$HASH6" &&
@@ -534,7 +534,7 @@ test_expect_success 'restricting bisection on one dir' '
 	para1=$(git rev-parse --verify HEAD) &&
 	test "$para1" = "$PARA_HASH1" &&
 	git bisect bad > my_bisect_log.txt &&
-	grep "$PARA_HASH1 is first bad commit" my_bisect_log.txt
+	grep "$PARA_HASH1 is the first bad commit" my_bisect_log.txt
 '
 
 test_expect_success 'restricting bisection on one dir and a file' '
@@ -552,7 +552,7 @@ test_expect_success 'restricting bisection on one dir and a file' '
 	para1=$(git rev-parse --verify HEAD) &&
 	test "$para1" = "$PARA_HASH1" &&
 	git bisect good > my_bisect_log.txt &&
-	grep "$PARA_HASH4 is first bad commit" my_bisect_log.txt
+	grep "$PARA_HASH4 is the first bad commit" my_bisect_log.txt
 '
 
 test_expect_success 'skipping away from skipped commit' '
-- 
1.6.4.1

-- 
Nanako Shiraishi
http://ivory.ap.teacup.com/nanako3/

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

* Re: [PATCH] git-bisect: call the found commit "*the* first bad commit"
  2009-08-26  8:38 [PATCH] git-bisect: call the found commit "*the* first bad commit" Nanako Shiraishi
@ 2009-08-26  9:05 ` Junio C Hamano
  2009-08-26 10:08   ` Johannes Schindelin
  2009-08-28  5:31 ` Christian Couder
  1 sibling, 1 reply; 6+ messages in thread
From: Junio C Hamano @ 2009-08-26  9:05 UTC (permalink / raw)
  To: Nanako Shiraishi; +Cc: git

Nanako Shiraishi <nanako3@lavabit.com> writes:

> .. as we learned in the school ;-)

Thanks.

Is it "learned in school", or do you also need "*the*" there?

;-)

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

* Re: [PATCH] git-bisect: call the found commit "*the* first bad commit"
  2009-08-26  9:05 ` Junio C Hamano
@ 2009-08-26 10:08   ` Johannes Schindelin
  2009-08-26 12:10     ` Alex Riesen
  2009-08-26 15:29     ` Jeff King
  0 siblings, 2 replies; 6+ messages in thread
From: Johannes Schindelin @ 2009-08-26 10:08 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Nanako Shiraishi, git

Hi,

On Wed, 26 Aug 2009, Junio C Hamano wrote:

> Nanako Shiraishi <nanako3@lavabit.com> writes:
> 
> > .. as we learned in the school ;-)
> 
> Thanks.
> 
> Is it "learned in school", or do you also need "*the*" there?
> 
> ;-)

Well, I learnt at school that it is "learnt" and "at school"...

double ;-)

Ciao,
Dscho

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

* Re: [PATCH] git-bisect: call the found commit "*the* first bad  commit"
  2009-08-26 10:08   ` Johannes Schindelin
@ 2009-08-26 12:10     ` Alex Riesen
  2009-08-26 15:29     ` Jeff King
  1 sibling, 0 replies; 6+ messages in thread
From: Alex Riesen @ 2009-08-26 12:10 UTC (permalink / raw)
  To: Johannes Schindelin; +Cc: Junio C Hamano, Nanako Shiraishi, git

On Wed, Aug 26, 2009 at 12:08, Johannes
Schindelin<Johannes.Schindelin@gmx.de> wrote:
> On Wed, 26 Aug 2009, Junio C Hamano wrote:
>> Nanako Shiraishi <nanako3@lavabit.com> writes:
>>
>> > .. as we learned in the school ;-)
>>
>> Thanks.
>>
>> Is it "learned in school", or do you also need "*the*" there?
>>
>> ;-)
>
> Well, I learnt at school that it is "learnt" and "at school"...
>
> double ;-)

There is not one native speaker in this discussion, BTW :)

http://www.thefreedictionary.com/learn
http://www.thefreedictionary.com/school (look for American
in "Translation")

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

* Re: [PATCH] git-bisect: call the found commit "*the* first bad commit"
  2009-08-26 10:08   ` Johannes Schindelin
  2009-08-26 12:10     ` Alex Riesen
@ 2009-08-26 15:29     ` Jeff King
  1 sibling, 0 replies; 6+ messages in thread
From: Jeff King @ 2009-08-26 15:29 UTC (permalink / raw)
  To: Johannes Schindelin; +Cc: Junio C Hamano, Nanako Shiraishi, git

On Wed, Aug 26, 2009 at 12:08:11PM +0200, Johannes Schindelin wrote:

> Well, I learnt at school that it is "learnt" and "at school"...
> 
> double ;-)

Bloody Europeans. ;)

-Peff

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

* Re: [PATCH] git-bisect: call the found commit "*the* first bad commit"
  2009-08-26  8:38 [PATCH] git-bisect: call the found commit "*the* first bad commit" Nanako Shiraishi
  2009-08-26  9:05 ` Junio C Hamano
@ 2009-08-28  5:31 ` Christian Couder
  1 sibling, 0 replies; 6+ messages in thread
From: Christian Couder @ 2009-08-28  5:31 UTC (permalink / raw)
  To: Nanako Shiraishi; +Cc: git, Junio C Hamano

On Wednesday 26 August 2009, Nanako Shiraishi wrote:
> .. as we learned in the school ;-)
>
> Signed-off-by: Nanako Shiraishi <nanako3@lavabit.com>
> ---
>  bisect.c                    |    2 +-
>  git-bisect.sh               |    2 +-
>  t/t6030-bisect-porcelain.sh |   18 +++++++++---------
>  3 files changed, 11 insertions(+), 11 deletions(-)
>
> diff --git a/bisect.c b/bisect.c
> index 7f20acb..dc18db8 100644
> --- a/bisect.c
> +++ b/bisect.c
> @@ -991,7 +991,7 @@ int bisect_next_all(const char *prefix)
>
>  	if (!hashcmp(bisect_rev, current_bad_sha1)) {
>  		exit_if_skipped_commits(tried, current_bad_sha1);
> -		printf("%s is first bad commit\n", bisect_rev_hex);
> +		printf("%s is the first bad commit\n", bisect_rev_hex);
>  		show_diff_tree(prefix, revs.commits->item);
>  		/* This means the bisection process succeeded. */
>  		exit(10);

Thanks, but I wonder if this could give the false impression that there can 
only be one "first bad commit". Because it's possible that a bug appears in 
one commit say A, then get fixed in another one say B, and eventually 
reappears in a third one say C. So if the bisection range contains all 
these commits, the result from bisecting could be A or C.

Best regards,
Christian.

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

end of thread, other threads:[~2009-08-28  5:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-26  8:38 [PATCH] git-bisect: call the found commit "*the* first bad commit" Nanako Shiraishi
2009-08-26  9:05 ` Junio C Hamano
2009-08-26 10:08   ` Johannes Schindelin
2009-08-26 12:10     ` Alex Riesen
2009-08-26 15:29     ` Jeff King
2009-08-28  5:31 ` Christian Couder

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).