git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git-bisect is magical

From
Wwalt <wa1ter@myrealbox.com>
Date
Jan 11, 2006, 18:07 UTC
Message-ID
<dq3hgn$maf$1@sea.gmane.org>
In-Reply-To
<Pine.LNX.4.64.0601101846170.3294@g5.osdl.org>

Linus Torvalds wrote: [...]

> So when you did "git checkout origin", you basically blew away all the 
> development you had done in the default "master" branch, and switched to 
> _another_ branch...

First, many thanks to you, Junio, and Sean (by email) for the great replies -- all three were extremely helpful, and this is all finally starting to make sense to me.

Now, I don't know whether this anecdote will give you any new information, but I'll offer it.

After I did the 'git checkout origin' yesterday, I didn't (yet) know what I was doing, so I made the following pilot-errors while still in 'origin': I did 'git-reset --hard origin' and then very early this morning I did cg-update, both of which seemed to work fine and gave no error messages, and I compiled a new kernel from the result.

After reading the three essays from you guys :o) I realized that I
had made these two mistakes, and tried to switch back to master:
$git-branch
  bisect
  master
* origin
$git-checkout master
fatal: Entry 'Documentation/kernel-parameters.txt' would be overwritten
by merge. Cannot merge.

So I cloned a fresh copy of your repository and built a new kernel. What I learned from this was that the new fixes to Makefile and setlocalversion (at a minimum) were not actually applied to the checked-out sources in my 'origin' misadventure. (I watched the commits being listed by cg-update, so I know the fixes were really downloaded -- but they were not applied to the checked-out sources as they normally would be.)

Would these anomalous results be expected -- given the, um, unusual circumstances?

Thanks again!
Previous: Linus TorvaldsNext: Sytse Wielinga
Message 11 of 14 in “git-bisect is magical”
  1. waltJan 9, 2006
  2. Linus TorvaldsJan 9, 2006
  3. waltJan 10, 2006
  4. Linus TorvaldsJan 10, 2006
  5. Linus TorvaldsJan 10, 2006
  6. waltJan 10, 2006
  7. Linus TorvaldsJan 10, 2006
  8. waltJan 11, 2006
  9. Junio C HamanoJan 11, 2006
  10. Linus TorvaldsJan 11, 2006
  11. waltJan 11, 2006
  12. Sytse WielingaJan 12, 2006
  13. waltJan 12, 2006
  14. Andreas EricssonJan 9, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.