Re: Found a "bug" in git 1.9.0 but can't reproduce it without copyrighted source code.
- From
yun sheng <uewing@gmail.com>
- Date
- Mar 28, 2014, 01:45 UTC
- Message-ID
- <CA+fYBFcqZtCxRjAiZk24VJutc_QT5asQU8EFRKpd0ZYqoN4=1g@mail.gmail.com>
- In-Reply-To
- <20140328014022.GO15625@google.com>
The files get the same timestamp by using `git difftool -d` to view diffs, the diff tool I use id beyond compare 3, this command would generate temp files to feed the compare program, so these files get the same time stamp, I copied them out from the temp folder.
I have no idea of the second quesiton, I am really not familiar with windows API. Do you mean this file may have been changed without rereading and git can't detect it?
Best regards, Sheng Yun
On Fri, Mar 28, 2014 at 9:40 AM, Jonathan Nieder <jrnieder@gmail.com> wrote:
Show 22 quoted lines
> Hi, > > yun sheng wrote: > >> these two files have the same timestamp, the same size, bug slightly >> different contents. > > How did they get the same timestamp? > > [...] >> Git I'm using is msysgit 1.9.0 on windows 7 > > Unixy operating systems have other fields like inode number and ctime > that make it possible to notice that a file might have been changed > without actually rereading it. Unfortunately Git for Windows is > limited to what's in the WIN32_FILE_ATTRIBUTE_DATA which means the > size, mtime, and mode are basically all it has to go by. > > Do you know of some other Windows API call that could help? > > Hope that helps, > Jonathan