Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Difference between EGit and SourceTree
Difference between EGit and SourceTree [message #1808744] Mon, 01 July 2019 06:47 Go to next message
Christian Stöhr is currently offline Christian StöhrFriend
Messages: 1
Registered: June 2019
Junior Member

i'm working with Eclipse + EGit. My colleagues work with + SourceTree.
If I edit a file recently edited by a colleague and commit it via EGit,
it shows me that the whole file has changed, even if I only have changed
one line.
As difference shown are the whitespaces at the beginning of each line.
My colleagues and I use exactly the same code formatter in eclipse.
How can I configure EGit, that it doesn't detect this as difference?
Re: Difference between EGit and SourceTree [message #1809034 is a reply to message #1808744] Sat, 06 July 2019 16:33 Go to previous message
Thomas Wolf is currently offline Thomas WolfFriend
Messages: 495
Registered: August 2016
Senior Member
First, are there differences? You could switch on "Show whitespace" in the compare editor to check, or you could get the file from your co-worker and check them both in a hex viewer. Another thing to watch out for are line endings (CR-LF vs. LF), and the related git config and possible .gitattributes settings in your or his setup.

Which EGit version are you using? On which OS are you, and on which OS does he work?

Is the repo publicly accessible? If so, I can clone it and check some more things.
Previous Topic:Confused about cherry-picking
Next Topic:Using Synchronize
Goto Forum:

Current Time: Thu Sep 29 05:06:36 GMT 2022

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

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

Back to the top