| Version 4 (modified by bowtie, 21 months ago) (diff) |
|---|
Edit -> Patch draft
Patch only works on files in local editor that are saved, ie it ignores files with leading * prefix in there name.
It is simplistic in it's approach, as it only works on one file at a time, If you need to work with files/projects look at one of our Plug-ins.
Patch tries to auto select the correct file in each list where relevant.
- the techie one liner Action, Against, Select File-1, Select File-2 if appropriate and then Process
Thanks to All the active members for there help with this addition
Right Click
If your current file in Padre is a patch file ( *.patch or *.diff ) and you Right click you get the following.
You will notice a short cut to Patch... has appeared.
Using Patch
By default Patch will assume it is working in Patch mode and if started with patch file current will try to find among the open files a corresponding file to apply patch to as shown below.
Logic
| Against | comments | |||
|---|---|---|---|---|
| Patch | File-1 | File-2 | auto select File-1 based on File-2 name, File-2 auto select based on extension | |
| Action | Diff | File-1 | File-2 | auto select File-1 based on current file, File-2 auto select file 0 |
| Diff | File-1 | SVN | auto select File-1 based on current file,File-2 n/a |
Output
- Patch results in a new Tab in Padre editor titled unsaved
- Diff results in file-name suffixed with .patch, saved in same location as file-name and opened in Padre editor.
Error
Any error will be displayed in Padre Output panel.
Miscellaneous
- Patch uses Text::Patch.
- Diff uses Text::Diff.
- SVN::Class is used if present, if not SVN radio button will be greyed out.
Limitations
- File List display in order files were loaded into Padre, if you have move files around by dragging there Tab this will not be reflected in List display order.
- If you have multiple files open with same name but with different paths only the first will get matched.
ToDo
- Use a different solution to SVN::Class which is not *inux centric.
__END__


