Re: git-diff on touched files: bug or feature?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Thu, 2 Aug 2007, Joel Reed wrote:

> On Thu, Aug 02, 2007 at 01:19:55PM +0100, Johannes Schindelin wrote:
> 
> <snip>
> 
> > 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.

I'll not go into details again.  See 
http://thread.gmane.org/gmane.comp.version-control.git/40205/focus=40339

Ciao,
Dscho

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux