| Summary: | Saving files may cause in diff seeing changes in every line | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Maciej Bendkowski <maciej.bendkowski> |
| Component: | Client | Assignee: | libing wang <libingw> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | CC: | libingw, maciej.bendkowski, Silenio_Quarti, susan |
| Version: | 4.0 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Maciej Bendkowski
I think you are seeing some changes in line delimiters. I suspect you are running a local git with core.autocrlf=true. For a big discussion of this, see bug 349096 and in particular bug 349096 comment 8. I'm not sure it's exactly your scenario but this bug should shed some light on the situation. (In reply to comment #1) > I'm not sure it's exactly your scenario but this bug should shed some light > on the situation. Thanks for the hint. I explicitly set core.autocrlf to false and since then no problems occurred. I can still reproduce even if I set the core.autoctrlf to false in the repository git configuration. Amending and adding/removing temporary new lines does not help. A workaround here is to checkout the file, and start coding again. I can't reproduce using a console git client, e. g. mysysgit. Git status is using "git diff" in stead of "compare two file URIs on the client side" If you are still reproducing it, could you verify the following steps. 1.Use Chrome. In git status page expand the file to see diff. 2.In chrome developer tools, look at the network tab. Find the request similar to "/gitapi/diff/...../yourChangedFile.js?parts=uris". 3.In the response body of this request, find "New" and "Old" file URIs. 4."New" is the URIs representing the file in your working directory while "Old" represents the file in the git index. 5.Now use "youOrionServer/orion/compare/examples/standalone/demo.html". 6.Choose "compare with two file URLs" on the top left corner of the page. Then paste two file URIs in the left and right pane respectively. 7.Press "Compare again" button in the demo page. If you see the proper diff at this moment, that means the "git diff" gives the wrong answer. We should think about using "pure client side diff" depending on your verification results. Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see: https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html |