|
Re: What is the difference in the INDEX file format compared to the Git bash? [message #1836962 is a reply to message #1836940] |
Wed, 20 January 2021 10:57 |
Thomas Wolf Messages: 576 Registered: August 2016 |
Senior Member |
|
|
One difference I can think of might be file timestamps. Native resolution (which is what Git for Windows uses) is 100ns, but depending on the Java version you run Eclipse with, Java sees only microseconds at best on Windows. Compare OpenJDK bug JDK-8231174. Only with a JDK >= 14 Java would see sub-microseconds. So index entries written by JGit might have timestamps rounded/truncated to microseconds, but native git might see timestamps at 100ns granularity.
AFAIK that should be the only difference.
What index format are you using? (What's the value of git config index.format, if set at all?)
[Updated on: Wed, 20 January 2021 10:58] Report message to a moderator
|
|
|
|
|
|
|
|
Re: What is the difference in the INDEX file format compared to the Git bash? [message #1837255 is a reply to message #1837178] |
Tue, 26 January 2021 10:18 |
Rice Bauer Messages: 34 Registered: August 2009 |
Member |
|
|
Thomas Wolf wrote on Sat, 23 January 2021 12:14
I see no reason for that. Perhaps the output doesn't report nanoseconds if they're zero.
I agree, that's a probable reason. And I cannot remember any line with three zeros in the end.
Thomas Wolf wrote on Sat, 23 January 2021 12:14
Does Git-for-Windows also rebuild the index if it was modified by an Eclipse running with Java 15?
Yes, it does. It says "Refresh index..." and it takes like two minutes for my current repo. And afterwards, the index file differs completely according to WinMerge, BUT the file size remains almost identical. Git-for-Windows seems to only add its additional 200kB if I allow it to create the index from scratch by deleting the old one and saying "git reset --hard" (but that also applies to the Corretto-11-index).
Thomas Wolf wrote on Sat, 23 January 2021 12:14... As you can imagine this carries a high risk of being a time sink...
Can imagine that, yes, but thanks anyway for your fast help here.
|
|
|
|
Powered by
FUDForum. Page generated in 0.06039 seconds