History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-21340
Type: New Feature New Feature
Status: Open Open
Priority: Normal Normal
Assignee: Dmitry Jemerov
Reporter: Michael Plump
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

Add patch file creation to openapi

Created: 20 Sep 07 13:41   Updated: 20 Sep 07 13:53
Component/s: Plugin Support. API
Fix Version/s: Diana Final

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 7,126
Severity: Low


 Description  « Hide
Selena includes a nice "Create Patch..." feature that makes a GNU diff-compatible unified diff. Presumably this uses classes from com.intellij.util.diff, which are nice, but creating a patch file from Diff.Content objects is non-trivial, and it would be nice if the code to do so were moved to the openapi.

I'm writing a plugin that integrates with a code review tool and creating patches is a necessary part of the plugin. (I've written my own, but I'd rather just use yours if possible.)



 All   Comments   Work Log   Change History      Sort Order:
Dmitry Jemerov - 20 Sep 07 13:53
You can use PatchBuilder, FilePatch and UnifiedDiffWriter classes now - they're not part of OpenAPI but it should be easy to figure out how to use them.