Community
Participate
Working Groups
Once bug 340449 is fixed, we need to fix the problem with crafted URIs in the Compare UI. I would like to use /compare.html to display differences between commits. The current shape of Compare UI does not work with Diff URIs like http://localhost:8080/git/diff/981adb594d627930c21444778dee6ebaca83bae1..de593852964351e629daad4e5e2814cfdcb1aaab/file/E/bundles/org.eclipse.orion.client.git/static/js/gitCommands.js
fixed at 5cbab9ee9afcde2ef1900ca88e813787f5c94bfa. If you use http://localhost:8080/git/diff/981adb594d627930c21444778dee6ebaca83bae1..de593852964351e629daad4e5e2814cfdcb1aaab/file/E/bundles/org.eclipse.orion.client.git/static/js/gitCommands.js , the left side will be editable . If you use ?readonly=true at the end of the url , e.g. http://localhost:8080/git/diff/981adb594d627930c21444778dee6ebaca83bae1..de593852964351e629daad4e5e2814cfdcb1aaab/file/E/bundles/org.eclipse.orion.client.git/static/js/gitCommands.js?readonly=true ,the left side will be read only.
I recommend using compare-m.html as it will have all the diff actions and it is the M7 version editor. The comapre.html uses gap model , which will be obsolete after M6. So the full usage is "compare-m.html#yourDiffURI?readonly=true" for readonly left side , which is suitable for comparing 2 commits.