Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356790 - configure all projects for Unix file endings
Summary: configure all projects for Unix file endings
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 trivial (vote)
Target Milestone: 3.7   Edit
Assignee: Steffen Pingel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-06 05:57 EDT by Steffen Pingel CLA
Modified: 2011-12-02 07:25 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen Pingel CLA 2011-09-06 05:57:54 EDT
Configure "New text file line delimiter" to Unix for all projects hosted in Git. The background is that EGit does not always convert line endings properly from Windows to Unix on commit.
Comment 1 Steffen Pingel CLA 2011-09-13 08:30:12 EDT
I have gone ahead and done this for the Mylyn Reviews projects located under gerrit and framework. I have also converted existing files in those projects.
Comment 2 Steffen Pingel CLA 2011-11-22 10:41:06 EST
Reopening since this now affects all projects. Policy for Eclipse project: http://wiki.eclipse.org/Platform-releng/Git_Workflows#Dealing_with_line_terminators.
Comment 3 Steffen Pingel CLA 2011-11-24 08:18:33 EST
Conversion scripts:

find -type f -not -path "*.git*" | xargs -i dos2unix {}
find -name .settings | xargs -i cp /tmp/org.eclipse.core.runtime.prefs {}

I excluded the following pathes:
 
 org.eclipse.mylyn.docs
 org.eclipse.mylyn.reviews/framework/org.eclipse.mylyn.reviews.frame.core/
 org.eclipse.mylyn.reviews/r4e/
 org.eclipse.mylyn.reviews/tbr/
Comment 4 Steffen Pingel CLA 2011-11-24 08:19:42 EST
David, okay to convert the Mylyn Docs repository (would affect ~50 files)?
Comment 5 David Green CLA 2011-11-24 13:16:09 EST
(In reply to comment #4)
> David, okay to convert the Mylyn Docs repository (would affect ~50 files)?

Yes, absolutely.  This is a pain, so thanks for offering to do this.
Comment 6 Steffen Pingel CLA 2011-12-02 07:25:30 EST
Done.