Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 364708 - Synchronize view shows non-existent white-space and other outgoing changes
Summary: Synchronize view shows non-existent white-space and other outgoing changes
Status: RESOLVED DUPLICATE of bug 301775
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: 1.1   Edit
Hardware: PC Windows 7
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-24 07:15 EST by Fabian Schmidt CLA
Modified: 2011-12-05 09:42 EST (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 Fabian Schmidt CLA 2011-11-24 07:15:04 EST
Build Identifier: 20100917-0705

When synchronising the workspace eclipse finds a lot of whitespace changes. However checking with mysysgit from the gitbash only the actual changes are found. The Problem also affects other users http://www.eclipse.org/forums/index.php/t/209456/
The behaviour renders the whole plugin useless.

Its probably easier reprucible but that worked for me
For info the workspace previously used svn, in my gitignore i have .svn and .metadata

Reproducible: Always

Steps to Reproduce:
1. Had existing workspace and put a git repository around it
2. Cloned the repository
3. Opened the new workspace
4. imported the existing projects
5. did team -> share project
6. ticked git and then repo in parent folder
7. after that was finised i marked everything and did team -> syncronize workspace
8. way to many changes due to whitespaces
Comment 1 Matthias Sohn CLA 2011-11-25 17:21:54 EST
What are your core.autocrlf settings ? JGit and EGit as of now only support core.autocrlf=false.
See bug 301775.
Comment 2 Fabian Schmidt CLA 2011-11-28 03:02:59 EST
(In reply to comment #1)
> What are your core.autocrlf settings ? JGit and EGit as of now only support
> core.autocrlf=false.
> See bug 301775.

I checked Team->Git->Configuration and I did not find a core.autocrlf setting so I assume its the standard setting what ever that is.
Comment 3 Fabian Schmidt CLA 2011-11-28 03:16:32 EST
I just realised taht I created and cloned the git repository with mysysgit, which sets the lineendings automatically, so probably thats the problem if git changes it to unix lineendings and i am working on a windows machine. If EGit does not work with that, then I guess those are the differences
Comment 4 Fabian Schmidt CLA 2011-12-05 09:42:07 EST
As it turns out the reason is egits inability to auto handle line endings

*** This bug has been marked as a duplicate of bug 301775 ***