| Summary: | Support patch workflow in Git | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Mark Macdonald <mamacdon> |
| Component: | Git | Assignee: | Tomasz Zarna <tomasz.zarna> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | libingw, Szymon.Brandys, tomasz.zarna |
| Version: | 0.3 | ||
| Target Milestone: | 0.4 M2 | ||
| Hardware: | PC | ||
| OS: | All | ||
| Whiteboard: | |||
| Bug Depends on: | 365575, 365576, 367108 | ||
| Bug Blocks: | |||
|
Description
Mark Macdonald
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. |