Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 125294

Summary: [Operations] "Convert text files to use platform line ending" should influence diff and "Clear timestamp"
Product: [Eclipse Project] Platform Reporter: Aaron Digulla <digulla>
Component: CVSAssignee: platform-cvs-inbox <platform-cvs-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: andrewbass
Version: 3.1.1Keywords: helpwanted
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Aaron Digulla CLA 2006-01-26 04:00:09 EST
We have a setup here which is a bit complicated: We use Eclipse to edit a Unix project.

During the build, several files (which are edited both on Windows and Unix) are copied back and forth which usually leads to a total confusion of line endings (ie. they change randomly).

I'd like to request the following feature: Change the checkbox into a combo/radio with these options:

- Convert text files to use platform line ending
- Ignore line endings for text files

The second option should ignore all possible line endings (CR/LF - Windows, LF - Unix, CR - Mac) during diff and "Clean timestamp" without actually changing the files.

A file where "A\n" has changed to "A \r\n" (ie. there is now a space at the end of the line) should show as different.

Mixed line endings in one file should be ignored.

Implementation tip: When you load the file for comparison, replace all possible line ends with \n and then compare.
Comment 1 Michael Valenta CLA 2006-02-13 17:00:33 EST
We wont have time to look at this for 3.2. Patches will be accepted.
Comment 2 Michael Valenta CLA 2006-06-16 10:07:19 EDT
Currently, we do not have the manpower to address this issue. Patches are welcome.
Comment 3 Denis Roy CLA 2009-08-30 02:14:48 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.
Comment 4 Aaron Digulla CLA 2010-07-02 08:58:41 EDT
This can now be fixed via the project properties by setting the line endings to "Unix" for all files on all platforms (instead of inheriting it from the container).