Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 365576

Summary: [client] Add Save Patch action
Product: [ECD] Orion Reporter: Tomasz Zarna <tomasz.zarna>
Component: GitAssignee: Tomasz Zarna <tomasz.zarna>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: libingw
Version: 0.3   
Target Milestone: 0.4 M2   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 367081    
Bug Blocks: 361425    

Description Tomasz Zarna CLA 2011-12-05 07:10:19 EST
The action could be added to the Git Status page, or to any page showing a comparison.
Comment 1 libing wang CLA 2011-12-05 09:52:06 EST
Is this an action to save the patched file(original file + diff) or just the unified diff ?
Lets confirm the work flow if it is the first case. Here is my assumption:
1.take action on "apply patch" for a file. (will this action be invoked from navigator?)
2.select the patch file from where ever you stored it, or just paste the patch.
3.The compare editor opens up and show as preview.
4.In the compare editor, save the patched file.
Comment 2 Tomasz Zarna CLA 2011-12-05 10:55:12 EST
(In reply to comment #1)
> Is this an action to save the patched file(original file + diff) or just the
> unified diff ?

I was thinking about saving the diff.

> 1.take action on "apply patch" for a file. (will this action be invoked from
> navigator?)

See bug 365575, comment 0. My initial idea was to add the action to the Repos page, but drag'n'droppin' a patch on the Git Status page makes sense to me as well. Would you like to see it somewhere else?
Comment 3 Tomasz Zarna CLA 2011-12-05 10:59:42 EST
I said drag'n'drop but the first cut will probably look similar to the "Import from ZIP" action when you browse your files looking for the patch.
Comment 4 Tomasz Zarna CLA 2011-12-20 06:22:00 EST
Fixed with 309cbd3a9b7c6e0d3edd0d8010cbbf651d3dbeb2
Comment 5 Tomasz Zarna CLA 2011-12-20 06:22:36 EST
.