GNOME Bugzilla – Bug 448527
Multiple File Patch
Last modified: 2017-12-13 18:49:05 UTC
It would be nice to have possibility to save differences in opened pair of files as a patch file (in format of the "diff --unified"). Optionally user would be able to select pairs whose differences will be saved to patch file. Use-case ): 1) User has opened several pairs of files for comparison and wants to save patch file. 2) Goes to menu File, Save As Patch... and window appears. 3) User checks/unchecks checkboxes of pairs he does not want to inculude in patch file. 4) User selects file name of the patch.
You can already save a patch from the filediff context menu. There is no UI for a multiple file patch however.
You are right Stephen. I did not notice that single-file-patch ability is in context menu. (Perhaps its worth adding it to "File" menu too.) Still, we have no capability to produce patch of multiple files at once. People often do patches with entire directories, or with most of their files. I suggest to add menu item (context menu, menu "File" or both) which would produce patch: a) for currently focused filediff or b) for selected files in currently focused directory comparison (I would leave out support for producing patch of all open filediffs or for user-selectable open filediffs - user would have to have directory comparison tab.)
*** Bug 474565 has been marked as a duplicate of this bug. ***
I've just pushed some changes that improve the patch dialogue. We now allow for patches between selected files in a three-way comparison and reverse patches. The patch creation UI has also been moved from the context menu to the main File menu, to make it easier to find. As we're still missing whole-of-directory (or version-control based) patch creation, I'm leaving this bug open.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/meld/issues/14.