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

Re: git-bisect problem

From
Linus Torvalds <torvalds@osdl.org>
Date
Feb 13, 2006, 16:44 UTC
Message-ID
<Pine.LNX.4.64.0602130838010.3691@g5.osdl.org>
In-Reply-To
<20060213022527.3f888666.akpm@osdl.org>
On Mon, 13 Feb 2006, Andrew Morton wrote:
Show 5 quoted lines
> Ryan Anderson <ryan@michonline.com> wrote:
> > 
> > git format-patch -o ~/a 386093ef9a6c88576d8b418bf1c8616d5e410a20^1..386093ef9a6c88576d8b418bf1c8616d5e410a20
> 
> That worked.
Well, really, it's much nicer these days to just say
	git show 386093ef9
and you're done.
For me, it gives a nice
	diff-tree 386093ef9a6c88576d8b418bf1c8616d5e410a20 (from ce5f8d70ba6e3d7ffcaff86b2cf91a42c27f77af)
	Author: Alexey Dobriyan <adobriyan@gmail.com>
	Date:   Wed Feb 1 03:04:57 2006 -0800
	
	    [PATCH] ipw2200: fix ->eeprom[EEPROM_VERSION] check
	    
	    priv->eeprom is a pointer.
	    
	    Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
	    Acked-by: Yi Zhu <yi.zhu@intel.com>
	    Cc: James Ketrenos <jketreno@linux.intel.com>
	    Signed-off-by: Andrew Morton <akpm@osdl.org>
	    Signed-off-by: Linus Torvalds <torvalds@osdl.org>
	
	diff --git a/drivers/net/wireless/ipw2200.c b/drivers/net/wireless/ipw2200.c
	index 916b24c..14beab4 100644
	--- a/drivers/net/wireless/ipw2200.c
	+++ b/drivers/net/wireless/ipw2200.c
	@@ -2456,7 +2456,7 @@ static void ipw_eeprom_init_sram(struct 
	           copy.  Otherwise let the firmware know to perform the operation
	           on it's own
	         */
	-       if ((priv->eeprom + EEPROM_VERSION) != 0) {
	+       if (priv->eeprom[EEPROM_VERSION] != 0) {
	                IPW_DEBUG_INFO("Writing EEPROM data into SRAM\n");
	 
	                /* write the eeprom data to sram */
which looks sane.
> I'm still not having much success geting a string of patches out of it.
> 
> git format-patch -o ~/a d834a41c966c6a20368fadb59248740935e6fbae..826eeb53a6f264842200d3311d69107d2eb25f5e
well, that's 1003 patches you're asking for. 
That's almost certainly _not_ what you want.
Do "gitk ..args.." to visually see what you're doing. Or, what I did:
	git-rev-list d834a41c966c6a20368fadb59248740935e6fbae..826eeb53a6f264842200d3311d69107d2eb25f5e |
		wc -l
which is how I got the 1003.
I'm pretty sure it wasn't what you meant to do.
> 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.

"git show". Much simpler. HOWEVER. Doing that 20-odd times sounds insane. Just use gitk to see that you actually have the right starting and ending points.

Visualizing the history really is very important. If you had tried gitk, you'd have immediately seen what you were doing, and that it wasn't what you wanted.

Only after you're really comfortable with git should you do anything at all without looking at it visually first.

(After you've done that a few months, you won't need it any more - your brain will be able to visualize things on its own. gitk is just the training wheels).

			Linus
Previous: Andrew MortonNext: Luben Tuikov
Message 12 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.