git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mark Levedahl <mlevedahl@verizon.net>
To: Mark Levedahl <mdl123@verizon.net>
Cc: Junio C Hamano <junkio@cox.net>, Git Mailing List <git@vger.kernel.org>
Subject: Re: autoCRLF, git status, git-gui, what is the desired behavior?
Date: Sun, 25 Feb 2007 18:55:32 -0500	[thread overview]
Message-ID: <45E221F4.4080900@verizon.net> (raw)
In-Reply-To: <45E20BC2.3000305@verizon.net>

Mark Levedahl wrote:
> Junio C Hamano wrote:
>> 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.
Never mind: I should have triggered off the observation that something 
was changing the file, but as far as I know git does not change the 
working directory on commit and the autoCRLF code does not introduce 
that "feature". My trusty old editor (visual slickedit) occasionally 
corrupts its macros and starts doing strange and wonderful things, 
always something I never saw before. In this case, I had foo open 
(absent crlf endings) in it and and the editor was apparently re-saving 
all of its files in the middle of my tests as I flipped between various 
windows. Killing the editor stopped the behavior, rebuilding all the 
macros from scratch got rid of the problem for good.

So, after all that, it appears that the index does reflect the size in 
the working repository and the problems I was having were nothing to do 
with git.

Sorry for the noise.

Mark

  reply	other threads:[~2007-02-25 23:55 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-25 19:33 autoCRLF, git status, git-gui, what is the desired behavior? Mark Levedahl
2007-02-25 19:54 ` Junio C Hamano
2007-02-25 20:28   ` Junio C Hamano
2007-02-25 21:14     ` Mark Levedahl
2007-02-25 21:22       ` Junio C Hamano
2007-02-25 22:20         ` Mark Levedahl
2007-02-25 23:55           ` Mark Levedahl [this message]
2007-02-25 20:51   ` Mark Levedahl
2007-02-26  2:06     ` Shawn O. Pearce
2007-02-26  2:45       ` Junio C Hamano
2007-02-26 15:54         ` Shawn O. Pearce

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45E221F4.4080900@verizon.net \
    --to=mlevedahl@verizon.net \
    --cc=git@vger.kernel.org \
    --cc=junkio@cox.net \
    --cc=mdl123@verizon.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).