From: Linus Torvalds <torvalds@osdl.org>
To: Andrew Morton <akpm@osdl.org>
Cc: Junio C Hamano <junkio@cox.net>, git@vger.kernel.org
Subject: Re: git-bisect problem
Date: Mon, 13 Feb 2006 17:14:25 -0800 (PST) [thread overview]
Message-ID: <Pine.LNX.4.64.0602131706460.3691@g5.osdl.org> (raw)
In-Reply-To: <20060213165620.11ec6051.akpm@osdl.org>
On Mon, 13 Feb 2006, Andrew Morton wrote:
>
> The bug is in Jeff's tree only
> (git+ssh://master.kernel.org/pub/scm/linux/kernel/git/jgarzik/netdev-2.6.git#ALL)
> so I wanted to perform the bisection on the git-netdev-all branch.
Actually, what you should do, is not play any games at all, but just tell
"git bisect" what the problem is. It will do the right thing.
So in this case, what you do is _literally_ to
# fetch Jeff's tree (you obviously had this already, but I just
# want to point it out as a "name that branch" thing)
git fetch netdev-all
# we know that that tree is broken
git bisect start
git bisect bad netdev-all
# We know that Linus' top-of-tree doesn't have the bug
git bisect good origin
and off you go. It absolutely magically does the right thing, and will
bisect stuff that is only in the netdev branch and not in my tree. No
guessing necessary, no need to try to figure out what the differences are.
git will do it all for you.
And notice how it will work perfectly well, even if the two points you
have tested AREN'T EVEN DIRECTLY RELATED! The "good" and "bad" points do
not have to have any direct relationship other than a common parent
_somewhere_. "git bisect" really is that good.
(The above is obviously assuming that "origin" is set to my tree,
self-aggrandizing bastard that I am, and that you've set up a
.git/remotes/netdev-all file pointing to Jeff's tree - your setup may vary
from this, so you'd have to change the lines to match)
Linus
next prev parent reply other threads:[~2006-02-14 1:14 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-13 8:25 git-bisect problem Andrew Morton
2006-02-13 9:11 ` Junio C Hamano
2006-02-13 9:32 ` Andrew Morton
2006-02-13 9:39 ` Ryan Anderson
2006-02-13 9:51 ` Andrew Morton
2006-02-13 9:58 ` Fernando J. Pereda
2006-02-13 10:22 ` Luben Tuikov
2006-02-13 10:23 ` Luben Tuikov
2006-02-13 12:21 ` cat-file (was Re: git-bisect problem) Joshua N Pritikin
2006-02-13 10:14 ` git-bisect problem Ryan Anderson
2006-02-13 10:25 ` Andrew Morton
2006-02-13 16:44 ` Linus Torvalds
2006-02-13 10:40 ` Luben Tuikov
2006-02-13 10:44 ` Andrew Morton
2006-02-14 0:33 ` Junio C Hamano
2006-02-13 10:08 ` Junio C Hamano
2006-02-13 10:19 ` Andrew Morton
2006-02-14 0:32 ` Junio C Hamano
2006-02-14 0:56 ` Andrew Morton
2006-02-14 1:14 ` Linus Torvalds [this message]
2006-02-14 1:15 ` Petr Baudis
2006-02-14 1:27 ` Petr Baudis
2006-02-14 1:52 ` 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=Pine.LNX.4.64.0602131706460.3691@g5.osdl.org \
--to=torvalds@osdl.org \
--cc=akpm@osdl.org \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
/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).