From: Joel Reed Date: Thu, 02 Aug 2007 13:25:41 GMT Subject: Re: git-diff on touched files: bug or feature? Message-ID: <20070802132541.GA9247@localdomain> In-Reply-To: On Thu, Aug 02, 2007 at 01:19:55PM +0100, Johannes Schindelin wrote: > For performance reasons, git always compares the files' stat information > with that stored in the index. > > By updating the file, you make that check fail always. > > Without updating the index (which is not a read-only operation, and > therefore must not be done when doing a read-only operation like diff), > you will therefore _destroy_ the main reason of git's kick-ass > performance. The idea that read-only operation like diff shouldn't update the index makes a lot of sense. But, as a user of git and not a git developer, I certainly _thought_ that git-status was a read-only operation as well. Now I know it isn't, but this doesn't seem very consistent. jr