From: Junio C Hamano <junkio@cox.net>
To: Sanjoy Mahajan <sanjoy@mrao.cam.ac.uk>
Cc: git@vger.kernel.org
Subject: Re: bisect gives strange answer
Date: Sun, 07 Aug 2005 10:06:19 -0700 [thread overview]
Message-ID: <7vvf2hy8vo.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <E1E14Hj-0001Nt-00@skye.ra.phy.cam.ac.uk> (Sanjoy Mahajan's message of "Fri, 05 Aug 2005 16:38:59 +0100")
Sanjoy Mahajan <sanjoy@mrao.cam.ac.uk> writes:
> I will redo those tests but rebuilding in place after each bisection
> (with -f added to all the git checkout uses in git-bisect-script) and
> see whether I get the same results. If I don't, it could be due to
> git or git-bisect (but not so likely with the -f switch) or to the
> build system. Will keep you and Junio posted.
I thought the lack of '-f' was a plausible explanation, but here
is what I just did. The same bisect sequence in your example,
making sure the state of working tree matches what the commit
being tested:
$ git bisect start
$ git bisect good 17af691cd19765b782d891fc50c1568d0f1276b3
$ git bisect bad c101f3136cc98a003d0d16be6fab7d0d950581a6
Bisecting: 42 revisions left to test after this
$ cat .git/HEAD
b2f571026594884e7a2a3f8bc6ad5c92e0703330
$ git bisect good; cat .git/HEAD; git-diff-cache -r bisect
Bisecting: 30 revisions left to test after this
450008b5a62bb09445ae05c4d01d510386c9435d
$ git bisect good; cat .git/HEAD; git-diff-cache -r bisect
Bisecting: 15 revisions left to test after this
a9df3597fec5472d0840fbfdc2a3fac5268f7d08
$ git bisect bad; cat .git/HEAD; git-diff-cache -r bisect
Bisecting: 8 revisions left to test after this
28e8c3ad9464de54a632f00ab3df88fa5f4652d1
$ git bisect bad; cat .git/HEAD; git-diff-cache -r bisect
Bisecting: 4 revisions left to test after this
c774e93e2152d0be2612739418689e6e6400f4eb
$ git bisect bad; cat .git/HEAD; git-diff-cache -r bisect
Bisecting: 2 revisions left to test after this
b4634484815e1879512a23e4f59eef648135c30a
So it does not appear to me that lack of '-f' is a problem.
Without the flag, checkout does "read-tree -m -u" which means to
update the working tree to match the new tree being read (this
includes the removal of files from the working tree that were
registered in the original index file that are not in the next
tree).
next prev parent reply other threads:[~2005-08-07 17:06 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-04 4:53 bisect gives strange answer Sanjoy Mahajan
2005-08-04 6:57 ` Junio C Hamano
2005-08-04 7:23 ` Sanjoy Mahajan
2005-08-04 17:26 ` Greg KH
2005-08-04 17:41 ` Sanjoy Mahajan
2005-08-04 18:27 ` Dave Jones
2005-08-04 18:32 ` Sanjoy Mahajan
2005-08-04 18:43 ` Junio C Hamano
2005-08-04 19:28 ` Sam Ravnborg
2005-08-05 15:38 ` Sanjoy Mahajan
2005-08-07 17:06 ` Junio C Hamano [this message]
[not found] <E1E3HoN-0002ET-Ht@approximate.corpus.cam.ac.uk>
2005-08-11 22:07 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vvf2hy8vo.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=git@vger.kernel.org \
--cc=sanjoy@mrao.cam.ac.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).