Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jgit-dev] Problem with line endings in new IndexDiff Implementation

Given a repo with files with UNIX line endings.
The working tree contains the same files with Windows line endings
Now the old Implementation of IndexDiff:
if (indexEntry.isModified(root, true)) {
returns false for isModified.
The new implementation says that the files in Index and Working Tree differ:
if (!dirCacheIterator.idEqual(workingTreeIterator)) {
        // in index, in workdir, content differs => modified
What is the expected behaviour?
Did I use the wrong method for comparing index and workdir?

Back to the top