Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360127 - Set new text file line delimiter to Unix to prevent conflicts
Summary: Set new text file line delimiter to Unix to prevent conflicts
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.7   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.8 M3   Edit
Assignee: Curtis Windatt CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-06 12:18 EDT by Curtis Windatt CLA
Modified: 2011-10-28 13:59 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Curtis Windatt CLA 2011-10-06 12:18:11 EDT
For all projects in Platform debug

To avoid line delimiter conflicts when working with text files and to have 
the same line delimiter (LF) in all our text files, the following rules 
apply when working with Git repositories from the Eclipse top-level 
project:

- Set core.autocrlf=false. If you use EGit to clone the repository then 
this is done automatically for you.
- In your workspaces set General > Workspace > 'New text file line 
delimiter' to 'Unix'.
- In the current dev branches (do not do this in maintenance branches) set 
'New text file line delimiter' to 'Unix' on the 'Resource' property page 
of your projects.
- If you don't work with EGit then it is your responsibility to avoid 
committing wrong line delimiters to the repository.

In addition, on Windows set core.fileMode=false. Again, if you use EGit to 
clone the repository then this is done automatically for you.
Comment 2 Pawel Piech CLA 2011-10-28 13:59:46 EDT
I see the newline setting in projects.  I also see that egit auto-sets the line mode option.