Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » git diff and .cproject and character (.cproject)
git diff and .cproject and character [message #1792657] Fri, 20 July 2018 14:45 Go to next message
Steve Iribarne is currently offline Steve IribarneFriend
Messages: 3
Registered: September 2017
Junior Member
We use MCUXpresso which is based off of Eclipse Oxygen 3a.

We have IOS users, Windows 10 Users and Linux Users. I'm noticing that every time I just open MCUXpresso that when I do a `git diff` that I have a bunch of at the end of "some" of the lines.

I believe that is some sort of new line, but I'm not sure where to turn this off/on or whatever I need to do to turn that off.

Can someone please point me to a config setting that I'm obviously missing.

Thanks.
-stv
Re: git diff and .cproject and character [message #1792679 is a reply to message #1792657] Sat, 21 July 2018 06:25 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33216
Registered: July 2009
Senior Member
With Oomph we have a Git clone task, and we make sure that we always set the core autocrlf property to true:

https://git.eclipse.org/c/jgit/jgit.git/tree/org.eclipse.jgit/src/org/eclipse/jgit/lib/ConfigConstants.java#n54
https://git.eclipse.org/c/jgit/jgit.git/tree/org.eclipse.jgit/src/org/eclipse/jgit/lib/ConfigConstants.java#n125
https://git.eclipse.org/c/jgit/jgit.git/tree/org.eclipse.jgit/src/org/eclipse/jgit/lib/CoreConfig.java#n63

Perhaps some details here will help you understand why that's important:

https://stackoverflow.com/questions/2825428/why-should-i-use-core-autocrlf-true-in-git

I believe this property can be set in your global Git configuration in the file system, assuming EGit finds that. In any case, you can configure it globally in Window -> Preferences -> Team -> Git -> Configuration as well.

If you see these undesirable line ending differences on Linux already, you have already checked Windows-style line endings into your repository. You will need to "repair" your repository by recommitting those files with proper Linux-style endings.

You might want to consider creating an Oomph Project setups for your team so that the whole process of creating a properly configured development environment is automated:

https://wiki.eclipse.org/Eclipse_Oomph_Authoring

You can see examples how such a setup is used here:

https://ci.eclipse.org/emf/

and here:

https://wiki.eclipse.org/Eclipse_Platform_SDK_Provisioning



Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Access restriction
Next Topic:eclipse-cpp-neon-3-win32-x86_64
Goto Forum:
  


Current Time: Fri Sep 20 07:33:46 GMT 2024

Powered by FUDForum. Page generated in 0.09743 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top