Community
Participate
Working Groups
Orion 0.3RC2 The other day I needed to review a patch attached to a bug. I had to go back to the command-line Git client for this, since there's no way to apply a patch using the Orion git tools.
Yup, definitely a cool feature. Saving Git Status as a patch would be useful too. Saving any comparison actually (see bug 71374).
It would be good to have bug 361548 fixed first. However another approach is to just use our Eclipse Compare Framework as Tomek mentioned in bug 361548, comment 0. Tomek, I think it will be better to rely on our framework for now than on a bug out of the JGit dev plan. Especially that our Orion bug is targeted for .4.
In Orion compare widget, there is an internal api that generates new file based on the input file and the unified diff. Not sure if this will be another option.
(In reply to comment #3) > In Orion compare widget, there is an internal api that generates new file based > on the input file and the unified diff. Would you interested in switching that to work on the server response? > Not sure if this will be another option. Keeping them both (patching mechanism on the client and on the server) wouldn't be bad, as long as they always produce identical results.
(In reply to comment #4) > Would you interested in switching that to work on the server response? Not sure if I understand this correctly. Did you mean converting the JS code to java?
(In reply to comment #5) > Did you mean converting the JS code to java? No, I meant to use the server response instead of the result of the JS code. Or actually, use the server response *in* the JS code of yours.
(In reply to comment #6) > (In reply to comment #5) > > Did you mean converting the JS code to java? > > No, I meant to use the server response instead of the result of the JS code. Or > actually, use the server response *in* the JS code of yours. Yes, I am doing it now. Before the new file was always generated by old file + diff. I thought it would reduce one request from server ( the new file content) but indeed we do not have to. As I am doing client side diff any way(compare any files where server can't respond a diff), I will leave that function for future use.
All blockers have been fixed.