Git development
 help / color / mirror / Atom feed
From: Linus Torvalds <torvalds@linux-foundation.org>
To: walt <w41ter@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: git-bisect not working correctly in the kvm.git repository?
Date: Mon, 17 Nov 2008 11:34:11 -0800 (PST)	[thread overview]
Message-ID: <alpine.LFD.2.00.0811171131330.18283@nehalem.linux-foundation.org> (raw)
In-Reply-To: <gfs9hn$hq9$1@ger.gmane.org>



On Mon, 17 Nov 2008, walt wrote:
>
> I'm trying to find a bug introduced somewhere between kvm-69
> and kvm-70, so of course I want to git-bisect down to it.
> 
> The weirdness is that when I give git-bisect the good and
> bad tags, almost everything in my working directory just
> disappears, leaving only the qemu subdirectory behind.

Have you done subdirectory merges or other odd merges?

If you merge stuff from another project that isn't a full repository, then 
you are merging commits that simply don't _have_ the full tree of your 
repo. If you then bisect into those commits, the checkout will then (of 
course) end up having only the files that are in that partial tree.

This will happen in the git repository too, if "git bisect" ends up 
jumping into one of the commits that were done in the 'gitk' repository. 

For an example of this, do something like

	git clean -dqfx
	git checkout -b oddbranch eb33a67f218b612f6fb1456e19b40a1f97ff02c0

in the git repository, and see all files disappear, and gitk is no longer 
in the 'gitk-git' subdirectory, but got moved to the top level.

Because in the history that is that commit, that is literally how things 
were. The data from that commit just got merged into a subdirectory of its 
own, and together with all the rest of git, by using a subtree merge.

			Linus

  reply	other threads:[~2008-11-17 19:36 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-17 17:27 git-bisect not working correctly in the kvm.git repository? walt
2008-11-17 19:34 ` Linus Torvalds [this message]
2008-11-17 20:19   ` walt
2008-11-17 20:34     ` Linus Torvalds
2008-11-18  7:13     ` Johannes Sixt
2008-11-18 20:38       ` Avi Kivity
2008-11-17 19:47 ` Christian Couder
2008-11-17 22:11   ` walt
2008-11-18  5:56     ` Christian Couder

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=alpine.LFD.2.00.0811171131330.18283@nehalem.linux-foundation.org \
    --to=torvalds@linux-foundation.org \
    --cc=git@vger.kernel.org \
    --cc=w41ter@gmail.com \
    /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