On Fri, 24 Aug 2007, Josh England wrote: > > Do you think its OK to cache this stuff in the index, though? > write-tree could then just dump the perms/ownership out as gitattributes > somewhere. I'd really prefer not. The index state - very much by design - matches the filesystem "stat" data, not the internal git data. So "ce_size" matches the checked-out size, not the native git data size (ie with CRLF conversion, it matches not the checked-in data, but the filesystem version). And the same really goes for ce_uid/ce_gid: they have to match what's on the filesystem, because they are used not to track user information, but to verify that the inode data is valid! Yeah, we could just ignore them for checking "is the inode the same", but that would actually end up *defeating* the point of what you want to do: at that point, we'd also obviously ignore it when ownership changes! Linus - 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