From: Junio C Hamano Date: Sun, 25 Feb 2007 21:22:11 GMT Subject: Re: autoCRLF, git status, git-gui, what is the desired behavior? Message-ID: <7v649qrkzg.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <45E1FC1C.4090409@verizon.net> Mark Levedahl writes: > ... Is it the case that > the size info stored in the index reflects the size of the blob rather > than of the working copy? The size field among other fields is to cache the last lstat(2) information so that later "is the path modified?" question can be answered efficiently. So the size should in general match both blob and filesystem but on CRLF filesystems it is compared against and updated with the data from the filesystem. There could be a subtle bug that when updating an index entry we might be incorrectly storing the size of the blob, but I haven't checked.