I'm using Eclipse Juno with EGit 2.0 and I'm having the following problem:
I've just cloned a rather big project using EGit, I haven't edited any file and I have some files to commit. If I check the repository status with git status
I see those files as unstaged modifications.
If I do Compare With -> HEAD Revision
in eclipse for any of those files I don't see any difference. However, when I do git diff
I see things like this:
diff --git a/PortalPlatform/WebContent/WEB-INF/fragment/someFile.jsp b/PortalPlatform/WebContent/WEB-INF/fragment/someFile.jsp
index f883dba..811ad83 100644
--- a/PortalPlatform/WebContent/WEB-INF/fragment/someFile.jsp
+++ b/PortalPlatform/WebContent/WEB-INF/fragment/someFile.jsp
@@ -34,7 +34,7 @@
</c:forEach>
</select>
</c:if>
- <div><a href="reprintLastReceipt"><fmt:message key="label.link" /></a></div>
+ <div><a href="reprintLastReceipt"><fmt:message key="label.link" /></a></div>^M
</fieldset>
<div class="widgetBut">
<a class="btn primary submit" href="#"><span><fmt:message key="button.reprint" /></span></a>
It hasn't affected a particular file type, I get the problem with .java, .jsp, .css, .properties and .xml files.
Why did I get those changes in the line breaks only in some files? How do I fix it?
Thanks in advance!