From: Linus Torvalds Date: Mon, 16 May 2005 22:32:24 GMT Subject: Re: [PATCH 3/4] Implement git-checkout-cache -u to update stat information in the cache. Message-ID: In-Reply-To: <20050516220153.GA8609@pasky.ji.cz> On Tue, 17 May 2005, Petr Baudis wrote: > > Dear diary, on Sun, May 15, 2005 at 11:23:12PM CEST, I got a letter > where Junio C Hamano 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