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

Re: [PATCH] fix bug in read-cache.c which loses files when merging a tree

From
Petr Baudis <pasky@ucw.cz>
Date
Apr 18, 2005, 21:58 UTC
Message-ID
<20050418215819.GH5554@pasky.ji.cz>
In-Reply-To
<Pine.LNX.4.58.0504181330450.15725@ppc970.osdl.org>

Dear diary, on Mon, Apr 18, 2005 at 11:19:46PM CEST, I got a letter where Linus Torvalds <torvalds@osdl.org> told me that...

> I suspect that I should just pass in the SHA1 of the files to the
> "merge-one-file-script" from "merge-cache", rather than unpacking it.  
> After all, the merging script can do the unpacking itself with a simple
> "cat-file blob $sha1".

So, I'm confused. Why did you introduce unpack-file instead of doing just this?

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor
Previous: Linus TorvaldsNext: Linus Torvalds
Message 4 of 5 in “fix bug in read-cache.c which loses files when merging a tree”
  1. fix bug in read-cache.c which loses files when merging a treeJames Bottomley, Apr 18, 2005
  2. Linus TorvaldsApr 18, 2005
  3. Linus TorvaldsApr 18, 2005
  4. Petr BaudisApr 18, 2005
  5. Linus TorvaldsApr 18, 2005

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.