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

Re: git-bisect problem

From
AMAndrew Morton <akpm@osdl.org>
Date
Feb 13, 2006, 10:25 UTC
Message-ID
<20060213022527.3f888666.akpm@osdl.org>
In-Reply-To
<20060213101443.GD11053@mythryan2.michonline.com>
Ryan Anderson <ryan@michonline.com> wrote:
Show 14 quoted lines
>
> On Mon, Feb 13, 2006 at 01:51:46AM -0800, Andrew Morton wrote:
> > 
> > Assuming I find the bad commit, how do I extract it as a patch?
> > 
> > I tried
> > 
> > git-format-patch -o ~/a 386093ef9a6c88576d8b418bf1c8616d5e410a20 git-netdev-all
> > 
> > and that chewed 10 minutes CPU time and produced no output, so I killed it.
> 
> Well, assuming it's not a merge, you'll want something like this:
> 
> git format-patch -o ~/a 386093ef9a6c88576d8b418bf1c8616d5e410a20^1..386093ef9a6c88576d8b418bf1c8616d5e410a20
That worked.
Show 11 quoted lines
> For essentially the same output, you can do a few other variations:
> 
> git whatchanged -p 386093ef9a6c88576d8b418bf1c8616d5e410a20^1..386093ef9a6c88576d8b418bf1c8616d5e410a20
> git diff 386093ef9a6c88576d8b418bf1c8616d5e410a20^1..386093ef9a6c88576d8b418bf1c8616d5e410a20
> 
> If it's a merge that bisect terminates on, things get a bit trickier, as
> you want to figure out what went wrong in the merge to cause it, so
> you'll want to use either the syntax for specifying which merge parent
> to look at (which I forget at the moment) or, run:
> 	git rev-list --parents --max-count=1 386093ef9a6c88576d8b418bf1c8616d5e410a20
> and look at columns 2+ individually.

It did terminate on a merge. Thats over four hours gone and, frankly, I'm sick of it. I just want the darned diffs so I can do something useful.

Show 6 quoted lines
> In fact, if you want, you can re-do the merge, by creating some branches
> based off of each parent, then pulling one into the other, and seeing
> what went wrong.
> 
> Hope that helps (if not, I apologize - I should've gone to bed a while
> ago and it may have snuck through)
It does.
I'm still not having much success geting a string of patches out of it.
git format-patch -o ~/a d834a41c966c6a20368fadb59248740935e6fbae..826eeb53a6f264842200d3311d69107d2eb25f5e
Has chewed 5 minutes CPU so far and hasn't produced anything.
How do I get the IPW patches out of Jeff's tree, in order?

I guess since I found a command which actually works, I can type that 20-odd times.

Previous: Ryan AndersonNext: Linus Torvalds
Message 11 of 23 in “git-bisect problem”
  1. Andrew MortonFeb 13, 2006
  2. Junio C HamanoFeb 13, 2006
  3. Andrew MortonFeb 13, 2006
  4. Ryan AndersonFeb 13, 2006
  5. Andrew MortonFeb 13, 2006
  6. Fernando J. PeredaFeb 13, 2006
  7. Luben TuikovFeb 13, 2006
  8. Luben TuikovFeb 13, 2006
  9. cat-file (was Re: git-bisect problem)Joshua N Pritikin, Feb 13, 2006
  10. Ryan AndersonFeb 13, 2006
  11. Andrew MortonFeb 13, 2006
  12. Linus TorvaldsFeb 13, 2006
  13. Luben TuikovFeb 13, 2006
  14. Andrew MortonFeb 13, 2006
  15. Junio C HamanoFeb 14, 2006
  16. Junio C HamanoFeb 13, 2006
  17. Andrew MortonFeb 13, 2006
  18. Junio C HamanoFeb 14, 2006
  19. Andrew MortonFeb 14, 2006
  20. Linus TorvaldsFeb 14, 2006
  21. Petr BaudisFeb 14, 2006
  22. Petr BaudisFeb 14, 2006
  23. Junio C HamanoFeb 14, 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.