GNOME Bugzilla – Bug 158071
RFE: Generating diff files
Last modified: 2009-08-15 18:40:50 UTC
I'd love to have 'Generate a diff file' action in the main menu (File?) and optionally in the context menu for files. For the start, I believe, it is enough to support unified diff format only.
I've added a basic "make patch" action to the context menu of the file diff. It's probably too much effort to add it to the menus however (as the 0.9.x branch is pre uimanager). I'll add the menu items when it is ported to the head.
Looks nice, thanks. Could you update the pot-file in CVS?
After I started really using this feature, I have stumbled upon one trouble. The generated patch mentions full paths of files. This causes 'patch' command to ask for names of files to patch. I'm not sure about how to solve this; "the least effort" solution could be simply to allow editing of a generated patch (currently one can only view it before copying to clipboard or saving). I'll submit a patch to Meld-0.9 in several minutes.
Created attachment 47246 [details] [review] Makes the patch preview editable
I've applied this and make better initial names. (removing the common prefix)
Superb. When testing, I've got another idea about patch preview, see bug 344917.
Batch close of old bugs.