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

Re: [PATCH 3/4] Implement git-checkout-cache -u to update stat information in the cache.

From
Linus Torvalds <torvalds@osdl.org>
Date
May 16, 2005, 22:32 UTC
Message-ID
<Pine.LNX.4.58.0505161530230.18337@ppc970.osdl.org>
In-Reply-To
<20050516220153.GA8609@pasky.ji.cz>
On Tue, 17 May 2005, Petr Baudis wrote:
Show 10 quoted lines
>
> Dear diary, on Sun, May 15, 2005 at 11:23:12PM CEST, I got a letter
> where Junio C Hamano <junkio@cox.net> told me that...
> > With -u flag, git-checkout-cache picks up the stat information
> > from newly created file and updates the cache.  This removes the
> > need to run git-update-cache --refresh immediately after running
> > git-checkout-cache.
> 
> I actually feel ok with this, but I wonder about Linus' opinion about
> it.  :-)
I don't think I mind any more.

My initial reluctance to do this was based on the fact that I wanted to avoid having something that updates things "both ways" (ie updates both the index file _and_ the checked-out stuff), and the largest reason for that was just worrying about stability.

However, it's not like we've been having major stability issues, afaik, and as long as the index file locking is honoured (which the patch seemed to do), I don't have any real issues with it.

		Linus
Previous: Petr BaudisNext: Junio C Hamano
Message 3 of 5 in “Implement git-checkout-cache -u to update stat information in the cache.”
  1. 3/4 Implement git-checkout-cache -u to update stat information in the cache.Junio C Hamano, May 15, 2005
  2. Petr BaudisMay 16, 2005
  3. Linus TorvaldsMay 16, 2005
  4. Junio C HamanoMay 16, 2005
  5. Junio C HamanoMay 16, 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.