After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 674557 - [PATCH] Patch mode
[PATCH] Patch mode
Status: RESOLVED OBSOLETE
Product: meld
Classification: Other
Component: general
git master
Other All
: Normal enhancement
: ---
Assigned To: meld-maint
meld-maint
: 572565 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-04-22 11:58 UTC by Piotr Piastucki
Modified: 2017-12-13 19:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add patch mode (51.21 KB, patch)
2012-04-22 11:59 UTC, Piotr Piastucki
none Details | Review

Description Piotr Piastucki 2012-04-22 11:58:24 UTC
The attached patch adds patch view mode to meld. 

Basic info about the new modules:
1) patchparser.py contains a simple unified format patch files parser
2) patcher.py applies patch file in memory and returns details results
3) patchview.py, patchdiff.py provide new UI to review patches

To run meld in patch mode use the following command:
meld --patch <file> [<dir>]

file - patch file, currently unified format patches are accepted
dir argument is optional, current directory will be used when omitted

Additional UI is provided to review and inspect patch files. Each file and each individual hunk affected by the patch file is shown in a tree view. If present, git commit message will be shown above the tree view. Quick diff is shown at the bottom.

More information and some screenshots can be found here - http://piastucki.bdl.pl/meld/patch/

Regards,
Piotr
Comment 1 Piotr Piastucki 2012-04-22 11:59:20 UTC
Created attachment 212533 [details] [review]
Add patch mode
Comment 2 Jean-Philippe Fleury 2013-07-02 05:55:12 UTC
Any news about adding this functionality?

Also, see bug 572565, that is related.
Comment 3 Kai Willadsen 2013-07-02 21:05:50 UTC
*** Bug 572565 has been marked as a duplicate of this bug. ***
Comment 4 Kai Willadsen 2013-07-02 21:08:35 UTC
Yeah I've dropped the ball on this, mostly due to the fact that I *really* don't want Meld to contain an implementation of patch. I'll try to find some time to review this sensibly and see whether there's a way forwards.

I like the idea of the patch view mode, so it's just about how to actually accomplish something like this without complicating our UI.
Comment 5 Jonas Wagner 2013-12-27 21:15:32 UTC
I'd also love to see this (and would donate a few millibitcoins if it happens :)!
Comment 6 GNOME Infrastructure Team 2017-12-13 19:00:05 UTC
-- 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/43.